@Test public void lower() { Object key = new Object(); Object value = new Object(); Set<Object> set = new HashSet<Object>(); set.add(value); doReturn(set).when(entry).getValue(); doReturn(key).when(entry).getKey(); doReturn(null).when(map).lowerEntry(key); List<Object> actualObjects = rangeIndex.lower(map, entry); assertEquals(value, actualObjects.get(0)); }
protected List<Object> lower(NavigableMap<Object, Set<Object>> map, Entry<Object, Set<Object>> current) { Set<Object> resultSet = new HashSet<Object>(); while (current != null) { synchronized (current) { resultSet.addAll(current.getValue()); current = map.lowerEntry(current.getKey()); } } return new ArrayList<Object>(resultSet); }
RangeIndex extends MultiValueIndex { protected List<Object> lower(NavigableMap<Object, Set<Object>> map, Entry<Object, Set<Object>> current) { Set<Object> resultSet = new HashSet<Object>(); while (current != null) { synchronized (current) { resultSet.addAll(current.getValue()); current = map.lowerEntry(current.getKey()); } } return new ArrayList<Object>(resultSet); } }
RangeIndex extends MultiValueIndex { protected List<Object> lower(NavigableMap<Object, Set<Object>> map, Entry<Object, Set<Object>> current) { Set<Object> resultSet = new HashSet<Object>(); while (current != null) { synchronized (current) { resultSet.addAll(current.getValue()); current = map.lowerEntry(current.getKey()); } } return new ArrayList<Object>(resultSet); } RangeIndex(); }
RangeIndex extends MultiValueIndex { protected List<Object> lower(NavigableMap<Object, Set<Object>> map, Entry<Object, Set<Object>> current) { Set<Object> resultSet = new HashSet<Object>(); while (current != null) { synchronized (current) { resultSet.addAll(current.getValue()); current = map.lowerEntry(current.getKey()); } } return new ArrayList<Object>(resultSet); } 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 { protected List<Object> lower(NavigableMap<Object, Set<Object>> map, Entry<Object, Set<Object>> current) { Set<Object> resultSet = new HashSet<Object>(); while (current != null) { synchronized (current) { resultSet.addAll(current.getValue()); current = map.lowerEntry(current.getKey()); } } return new ArrayList<Object>(resultSet); } 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();  }