@Test public void greaterThan() { Object value = new Object(); doReturn(entry).when(map).higherEntry(value); doReturn(result).when(rangeIndex).higher(map, entry); rangeIndex.greaterThan(value); verify(rangeIndex).higher(map, entry); }
public List<Object> greaterThan(Object value) { NavigableMap<Object, Set<Object>> map = getMap(); Entry<Object, Set<Object>> current = map.higherEntry(value); return higher(map, current); }
RangeIndex extends MultiValueIndex { public List<Object> greaterThan(Object value) { NavigableMap<Object, Set<Object>> map = getMap(); Entry<Object, Set<Object>> current = map.higherEntry(value); return higher(map, current); } }
RangeIndex extends MultiValueIndex { public List<Object> greaterThan(Object value) { NavigableMap<Object, Set<Object>> map = getMap(); Entry<Object, Set<Object>> current = map.higherEntry(value); return higher(map, current); } RangeIndex(); }
RangeIndex extends MultiValueIndex { public List<Object> greaterThan(Object value) { NavigableMap<Object, Set<Object>> map = getMap(); Entry<Object, Set<Object>> current = map.higherEntry(value); return higher(map, current); } RangeIndex(); List<Object> lessThan(Object value); List<Object> lessThanOrEqualsTo(Object value); List<Object> greaterThan(Object value); List<Object> greaterThanOrEqualsTo(Object value); @SuppressWarnings("unchecked") List<Object> between(Object lowerBound, Object upperBound); NavigableMap<Object, Set<Object>> getMap(); }
RangeIndex extends MultiValueIndex { public List<Object> greaterThan(Object value) { NavigableMap<Object, Set<Object>> map = getMap(); Entry<Object, Set<Object>> current = map.higherEntry(value); return higher(map, current); } RangeIndex(); List<Object> lessThan(Object value); List<Object> lessThanOrEqualsTo(Object value); List<Object> greaterThan(Object value); List<Object> greaterThanOrEqualsTo(Object value); @SuppressWarnings("unchecked") List<Object> between(Object lowerBound, Object upperBound); NavigableMap<Object, Set<Object>> getMap();  }