@Test public void equalsTo() { List<Object> list = new ArrayList<Object>(); Object value = new Object(); Set<Object> set = new HashSet<Object>(); set.add(value); doReturn(set).when(map).get(value); rangeIndex.equalsTo(value, list); assertTrue(list.contains(value)); }
protected void equalsTo(Object value, List<Object> result) { Collection<Object> results = map.get(value); if (results != null) { synchronized (results) { result.addAll(results); } } }
RangeIndex extends MultiValueIndex { protected void equalsTo(Object value, List<Object> result) { Collection<Object> results = map.get(value); if (results != null) { synchronized (results) { result.addAll(results); } } } }
RangeIndex extends MultiValueIndex { protected void equalsTo(Object value, List<Object> result) { Collection<Object> results = map.get(value); if (results != null) { synchronized (results) { result.addAll(results); } } } RangeIndex(); }
RangeIndex extends MultiValueIndex { protected void equalsTo(Object value, List<Object> result) { Collection<Object> results = map.get(value); if (results != null) { synchronized (results) { result.addAll(results); } } } 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 void equalsTo(Object value, List<Object> result) { Collection<Object> results = map.get(value); if (results != null) { synchronized (results) { result.addAll(results); } } } 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();  }