/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
SortedMapInterfaceTest.java | 72 SortedMap<K, V> subMap = map.tailMap(key); 74 subMap.put(key, value); 78 subMap.put(firstEntry.getKey(), value); 99 SortedMap<K, V> subMap = map.tailMap(key); 100 subMap.remove(key); 101 assertNull(subMap.remove(firstEntry.getKey())); 104 assertEquals(subMap.size(), oldSize - 2); 122 SortedMap<K, V> subMap = map.tailMap(key); 123 int subMapSize = subMap.size(); 124 subMap.clear() [all...] |
SafeTreeMap.java | 248 @Override public NavigableMap<K, V> subMap( 250 return new SafeTreeMap<K, V>(delegate.subMap( 254 @Override public SortedMap<K, V> subMap(K fromKey, K toKey) { 255 return subMap(fromKey, true, toKey, false);
|
NavigableMapTestSuiteBuilder.java | 63 if (!parentBuilder.getFeatures().contains(NoRecurse.SUBMAP)) { 95 return map.subMap(firstExclusive, false, lastExclusive, false); 97 return map.subMap(firstExclusive, false, lastInclusive, true); 99 return map.subMap(firstInclusive, true, lastInclusive, true);
|
/libcore/luni/src/main/java/java/util/concurrent/ |
ConcurrentNavigableMap.java | 33 ConcurrentNavigableMap<K,V> subMap(K fromKey, boolean fromInclusive, 55 ConcurrentNavigableMap<K,V> subMap(K fromKey, K toKey);
|
/external/guava/guava-tests/test/com/google/common/collect/ |
SynchronizedNavigableMapTest.java | 191 @Override public NavigableMap<K, V> subMap( 194 return delegate().subMap(fromKey, fromInclusive, toKey, toInclusive); 197 @Override public SortedMap<K, V> subMap(K fromKey, K toKey) { 198 return delegate().subMap(fromKey, true, toKey, false); 362 SortedMap<String, Integer> subMap = map.subMap("a", "b"); 363 assertTrue(subMap instanceof SynchronizedSortedMap); 364 assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) subMap).mutex); 369 NavigableMap<String, Integer> subMap = map.subMap("a", true, "b", false) [all...] |
SubMapMultimapAsMapImplementsMapTest.java | 27 * Test {@code TreeMultimap.asMap().subMap()} with {@link MapInterfaceTest}. 50 return createMultimap().asMap().subMap("e", "p"); 59 return multimap.asMap().subMap("e", "p");
|
ForwardingSortedMapTest.java | 109 @Override public SortedMap<K, V> subMap(K fromKey, K toKey) { 208 forward().subMap("first", "last"); 209 assertEquals("[subMap(Object,Object)]", getCalls());
|
/libcore/ojluni/src/main/java/java/util/ |
SortedMap.java | 87 * SortedMap<String, V> sub = m.subMap(low, high+"\0");</pre> 93 * SortedMap<String, V> sub = m.subMap(low+"\0", high);</pre> 154 SortedMap<K,V> subMap(K fromKey, K toKey);
|
NavigableMap.java | 59 * {@link #subMap(Object, boolean, Object, boolean) subMap(K, boolean, K, boolean)}, 80 * {@link #subMap(Object, Object) subMap(K, K)}, 309 * submap either of whose endpoints lie outside its range. 332 NavigableMap<K,V> subMap(K fromKey, boolean fromInclusive, 396 * <p>Equivalent to {@code subMap(fromKey, true, toKey, false)}. 402 SortedMap<K,V> subMap(K fromKey, K toKey);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
TreeMapTest.java | 360 assertTrue("submap should be empty", sub.isEmpty()); 388 assertTrue("submap should be empty", sub.isEmpty()); 429 assertEquals(objArray[objArray.length - 2].toString(), tm.subMap("99", 447 sm = sm.subMap(firstKey, lastKey); 506 assertEquals("Returned incorrect size", 111, tm.subMap("500", "600") 509 tm.subMap("null", "600"); 514 assertEquals("Returned incorrect size", 1000, tm.subMap("", "null") 519 * java.util.TreeMap#subMap(java.lang.Object, java.lang.Object) 523 // java.util.TreeMap.subMap(java.lang.Object, java.lang.Object) 524 SortedMap subMap = tm.subMap(objArray[100].toString(), objArray[109 1913 Map<String, String> submap = test_map.subMap("a", "z"); local [all...] |
TreeMapExtendTest.java | 188 assertTrue("SubMap contains incorrect elements", subMap_default 190 assertTrue("SubMap contains incorrect elements", 192 assertTrue("SubMap contains incorrect elements", 194 assertTrue("SubMap contains incorrect elements", 196 assertTrue("SubMap contains incorrect elements", 202 assertTrue("SubMap contains incorrect elements", subMap_default 204 assertFalse("SubMap contains incorrect elements", 206 assertFalse("SubMap contains incorrect elements", 208 assertTrue("SubMap contains incorrect elements", 210 assertTrue("SubMap contains incorrect elements" [all...] |
SortedMapTestBase.java | 215 checkSubMap(ref.subMap(key0, key1), map.subMap(key0, key1)); 220 map.subMap(0, 100); 222 map.subMap(100, 0);
|
/libcore/luni/src/test/java/libcore/java/util/ |
TreeMapTest.java | 74 NavigableMap<String, String> subMap = map.subMap("A", true, "C", true); 76 Iterator<Entry<String, String>> iterator = subMap.entrySet().iterator(); 80 assertEquals("x", subMap.get("A")); 87 assertEquals("y", subMap.get("B")); 90 assertEquals("z", subMap.get("C")); 116 assertAllEntryMethodsReturnImmutableEntries(map.subMap("A", true, "C", true)); 215 map.subMap("a", "z").put(null, "b"); 242 Map<Object, Object> map = new TreeMap<Object, Object>().subMap("a", "z"); 322 SortedMap<String, String> subMap = map.subMap("a", "c") [all...] |
OldTreeMapTest.java | 395 // java.util.TreeMap.subMap(java.lang.Object, java.lang.Object) 396 SortedMap subMap = tm.subMap(objArray[100].toString(), objArray[109] 398 assertEquals("subMap is of incorrect size", 9, subMap.size()); 400 assertTrue("SubMap contains incorrect elements", subMap.get( 405 tm.subMap(objArray[9].toString(), objArray[1].toString()); 416 SortedMap<String, String> subMapWithNull = treeMapWithNull.subMap(null, 418 assertEquals("Size of subMap should be 1:", 1, subMapWithNull.size()) [all...] |
/external/guava/guava/src/com/google/common/collect/ |
ForwardingSortedMap.java | 86 public SortedMap<K, V> subMap(K fromKey, K toKey) { 87 return delegate().subMap(fromKey, toKey); 146 * A sensible default implementation of {@link #subMap(Object, Object)} in 148 * situations, you may wish to override {@link #subMap(Object, Object)} to
|
StandardRowSortedTable.java | 125 public SortedMap<R, Map<C, V>> subMap(R fromKey, R toKey) { 129 sortedBackingMap().subMap(fromKey, toKey), factory).rowMap();
|
TreeRangeSet.java | 176 rangesByLowerBound.subMap(lbToAdd, ubToAdd).clear(); 221 rangesByLowerBound.subMap(rangeToRemove.lowerBound, rangeToRemove.upperBound).clear(); 246 * upperBoundWindow represents the headMap/subMap/tailMap view of the entire "ranges by upper 262 private NavigableMap<Cut<C>, Range<C>> subMap(Range<Cut<C>> window) { 271 public NavigableMap<Cut<C>, Range<C>> subMap( 273 return subMap(Range.range( 280 return subMap(Range.upTo(toKey, BoundType.forBoolean(inclusive))); 285 return subMap(Range.downTo(fromKey, BoundType.forBoolean(inclusive))); 405 * complementLowerBoundWindow represents the headMap/subMap/tailMap view of the entire 422 private NavigableMap<Cut<C>, Range<C>> subMap(Range<Cut<C>> subWindow) [all...] |
AbstractNavigableMap.java | 134 public SortedMap<K, V> subMap(K fromKey, K toKey) { 135 return subMap(fromKey, true, toKey, false);
|
ForwardingNavigableMap.java | 356 * A sensible definition of {@link #subMap(Object, Object)} in terms of 357 * {@link #subMap(Object, boolean, Object, boolean)}. If you override 358 * {@code subMap(K, boolean, K, boolean)}, you may wish to override {@code subMap} to forward to 363 return subMap(fromKey, true, toKey, false); 367 public NavigableMap<K, V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) { 368 return delegate().subMap(fromKey, fromInclusive, toKey, toInclusive);
|
AbstractMapBasedMultimap.java | 920 KeySet(final Map<K, Collection<V>> subMap) { 921 super(subMap); 983 SortedKeySet(SortedMap<K, Collection<V>> subMap) { 984 super(subMap); 1013 return new SortedKeySet(sortedMap().subMap(fromElement, toElement)); 1024 NavigableKeySet(NavigableMap<K, Collection<V>> subMap) { 1025 super(subMap); 1092 sortedMap().subMap(fromElement, fromInclusive, toElement, toInclusive)); [all...] |
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
SortedMapNavigationTester.java | 142 .subMap(entries.get(i).getKey(), entries.get(j).getKey()) 152 navigableMap.subMap(c.getKey(), a.getKey());
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
ImmutableSortedMapTest.java | 176 .subMap("b", "d"); 644 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).subMap("one", false, "two", false); 651 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).subMap("one", true, "two", false); 659 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).subMap("one", false, "two", true); 667 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).subMap("one", true, "two", true);
|
TreeBasedTableTest.java | 80 table.row("b").subMap("c", "x").clear(); 82 table.row("b").subMap("b", "y").clear(); 271 = sortedTable.rowMap().subMap("cat", "egg");
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
AbstractMapBasedMultimap.java | 842 KeySet(final Map<K, Collection<V>> subMap) { 843 super(subMap); 905 SortedKeySet(SortedMap<K, Collection<V>> subMap) { 906 super(subMap); 935 return new SortedKeySet(sortedMap().subMap(fromElement, toElement)); 1071 * subMap() of a SortedAsMap. 1073 final transient Map<K, Collection<V>> submap; 1075 AsMap(Map<K, Collection<V>> submap) { 1076 this.submap = submap; [all...] |
ImmutableSortedMap.java | 274 public ImmutableSortedMap<K, V> subMap(K fromKey, K toKey) { 278 return newView(sortedDelegate.subMap(fromKey, toKey)); 281 ImmutableSortedMap<K, V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) {
|