/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 | 176 @Override public SortedMap<K, V> subMap(K fromKey, K toKey) { 177 return new SafeTreeMap<K, V>(delegate.subMap(checkValid(fromKey), checkValid(toKey)));
|
/libcore/luni/src/main/java/java/util/concurrent/ |
ConcurrentNavigableMap.java | 32 ConcurrentNavigableMap<K,V> subMap(K fromKey, boolean fromInclusive, 54 ConcurrentNavigableMap<K,V> subMap(K fromKey, K toKey);
|
/libcore/luni/src/main/java/java/util/ |
SortedMap.java | 97 public SortedMap<K,V> subMap(K startKey, K endKey);
|
NavigableMap.java | 30 * ones. Methods {@code subMap}, {@code headMap}, 50 * {@link #subMap(Object, Object) subMap(K, K)}, 273 * submap either of whose endpoints lie outside its range. 296 NavigableMap<K,V> subMap(K fromKey, boolean fromInclusive, 360 * <p>Equivalent to {@code subMap(fromKey, true, toKey, false)}. 366 SortedMap<K,V> subMap(K fromKey, K toKey);
|
TreeMap.java | 697 public NavigableMap<K, V> subMap(K from, boolean fromInclusive, K to, boolean toInclusive) { 703 public SortedMap<K, V> subMap(K fromInclusive, K toExclusive) { [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
TreeMapTest.java | 67 NavigableMap<String, String> subMap = map.subMap("A", true, "C", true); 69 Iterator<Entry<String, String>> iterator = subMap.entrySet().iterator(); 73 assertEquals("x", subMap.get("A")); 80 assertEquals("y", subMap.get("B")); 83 assertEquals("z", subMap.get("C")); 109 assertAllEntryMethodsReturnImmutableEntries(map.subMap("A", true, "C", true)); 208 map.subMap("a", "z").put(null, "b"); 235 Map<Object, Object> map = new TreeMap<Object, Object>().subMap("a", "z"); 314 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...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
TreeMapTest.java | 358 assertTrue("submap should be empty", sub.isEmpty()); 386 assertTrue("submap should be empty", sub.isEmpty()); 427 assertEquals(objArray[objArray.length - 2].toString(), tm.subMap("99", 445 sm = sm.subMap(firstKey, lastKey); 504 assertEquals("Returned incorrect size", 111, tm.subMap("500", "600") 507 tm.subMap("null", "600"); 512 assertEquals("Returned incorrect size", 1000, tm.subMap("", "null") 517 * java.util.TreeMap#subMap(java.lang.Object, java.lang.Object) 521 // java.util.TreeMap.subMap(java.lang.Object, java.lang.Object) 522 SortedMap subMap = tm.subMap(objArray[100].toString(), objArray[109 1909 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);
|
RefSortedMap.java | 90 class SubMap extends java.util.AbstractMap<K, V> 96 SubMap(boolean hasFirst, K first, boolean hasLast, K last) { 114 int offset = SubMap.this.size() > 0 ? 115 bsearch(SubMap.this.firstKey()) - 1 : 153 int lastIdx = bsearch(SubMap.this.lastKey()); 154 int firstIdx = bsearch(SubMap.this.firstKey()); 192 return new SubMap(hasStart, start, true, key); 211 public SortedMap<K, V> subMap(K startKey, K endKey) { 218 return new SubMap(true, startKey, true, endKey); 225 return new SubMap(true, key, hasEnd, end) [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
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 | 112 @Override public SortedMap<K, V> subMap(K fromKey, K toKey) { 211 forward().subMap("first", "last"); 212 assertEquals("[subMap(Object,Object)]", getCalls());
|
ImmutableSortedMapTest.java | 239 .subMap("b", "d"); 729 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).subMap("one", false, "two", false); 736 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).subMap("one", true, "two", false); 744 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).subMap("one", false, "two", true); 752 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).subMap("one", true, "two", true);
|
TreeBasedTableTest.java | 117 table.row("b").subMap("c", "x").clear(); 119 table.row("b").subMap("b", "y").clear(); 314 = sortedTable.rowMap().subMap("cat", "egg");
|
/external/guava/guava/src/com/google/common/collect/ |
StandardRowSortedTable.java | 125 public SortedMap<R, Map<C, V>> subMap(R fromKey, R toKey) { 129 sortedBackingMap().subMap(fromKey, toKey), factory).rowMap();
|
ForwardingSortedMap.java | 87 public SortedMap<K, V> subMap(K fromKey, K toKey) { 88 return delegate().subMap(fromKey, toKey); 184 * A sensible default implementation of {@link #subMap(Object, Object)} in 186 * situations, you may wish to override {@link #subMap(Object, Object)} to
|
AbstractMapBasedMultimap.java | 843 KeySet(final Map<K, Collection<V>> subMap) { 844 super(subMap); 906 SortedKeySet(SortedMap<K, Collection<V>> subMap) { 907 super(subMap); 936 return new SortedKeySet(sortedMap().subMap(fromElement, toElement)); 1072 * subMap() of a SortedAsMap. 1074 final transient Map<K, Collection<V>> submap; 1076 AsMap(Map<K, Collection<V>> submap) { 1077 this.submap = submap; [all...] |
ImmutableSortedMap.java | 475 * <p>The {@link SortedMap#headMap} documentation states that a submap of a 476 * submap throws an {@link IllegalArgumentException} if passed a {@code toKey} 490 * <p>The {@link SortedMap#headMap} documentation states that a submap of a 491 * submap throws an {@link IllegalArgumentException} if passed a {@code toKey} 505 * <p>The {@link SortedMap#subMap} documentation states that a submap of a 506 * submap throws an {@link IllegalArgumentException} if passed a {@code 514 public ImmutableSortedMap<K, V> subMap(K fromKey, K toKey) { 515 return subMap(fromKey, true, toKey, false); 523 * <p>The {@link SortedMap#subMap} documentation states that a submap of [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) {
|