Home
last modified time | relevance | path

Searched refs:keySet (Results 1 – 25 of 697) sorted by relevance

12345678910>>...28

/external/apache-harmony/support/src/test/java/tests/support/
DSupport_UnmodifiableMapTest.java87 Set<?> keySet = map.keySet(); in runTest() local
88 t_KeySet(keySet); in runTest()
100 void t_KeySet(Set<?> keySet) { in t_KeySet() argument
105 keySet.contains("0")); in t_KeySet()
107 keySet.contains("50")); in t_KeySet()
110 !keySet.contains("100")); in t_KeySet()
119 keySet.containsAll(hs)); in t_KeySet()
123 !keySet.containsAll(hs)); in t_KeySet()
127 !keySet.isEmpty()); in t_KeySet()
130 Iterator<?> it = keySet.iterator(); in t_KeySet()
[all …]
/external/guava/guava/src/com/google/common/collect/
DRegularImmutableSortedMap.java32 private final transient RegularImmutableSortedSet<K> keySet; field in RegularImmutableSortedMap
35 RegularImmutableSortedMap(RegularImmutableSortedSet<K> keySet, ImmutableList<V> valueList) { in RegularImmutableSortedMap() argument
36 this.keySet = keySet; in RegularImmutableSortedMap()
41 RegularImmutableSortedSet<K> keySet, in RegularImmutableSortedMap() argument
45 this.keySet = keySet; in RegularImmutableSortedMap()
64 private final ImmutableList<K> keyList = keySet().asList(); in createAsList()
85 public ImmutableSortedSet<K> keySet() { in keySet() method
86 return keySet; in keySet()
96 int index = keySet.indexOf(key); in get()
107 keySet.getSubSet(fromIndex, toIndex), in getSubMap()
[all …]
DEmptyImmutableSortedMap.java34 private final transient ImmutableSortedSet<K> keySet; field in EmptyImmutableSortedMap
37 this.keySet = ImmutableSortedSet.emptySet(comparator); in EmptyImmutableSortedMap()
43 this.keySet = ImmutableSortedSet.emptySet(comparator); in EmptyImmutableSortedMap()
52 public ImmutableSortedSet<K> keySet() { in keySet() method in EmptyImmutableSortedMap
53 return keySet; in keySet()
/external/guava/guava-tests/test/com/google/common/cache/
DCacheEvictionTest.java186 Set<Integer> keySet = cache.asMap().keySet(); in testEviction_lru() local
187 assertThat(keySet).has().exactly(0, 1, 2, 3, 4, 5, 6, 7, 8, 9); in testEviction_lru()
192 assertThat(keySet).has().exactly(3, 4, 5, 6, 7, 8, 9, 0, 1, 2); in testEviction_lru()
197 assertThat(keySet).has().exactly(6, 7, 8, 9, 0, 1, 2, 10, 11, 12); in testEviction_lru()
202 assertThat(keySet).has().exactly(9, 0, 1, 2, 10, 11, 12, 6, 7, 8); in testEviction_lru()
207 assertThat(keySet).has().exactly(2, 10, 11, 12, 6, 7, 8, 13, 14, 15); in testEviction_lru()
219 Set<Integer> keySet = cache.asMap().keySet(); in testEviction_weightedLru() local
220 assertThat(keySet).has().exactly(0, 1, 2, 3, 4, 5, 6, 7, 8, 9); in testEviction_weightedLru()
225 assertThat(keySet).has().exactly(3, 4, 5, 6, 7, 8, 9, 0, 1, 2); in testEviction_weightedLru()
230 assertThat(keySet).has().exactly(6, 7, 8, 9, 0, 1, 2, 10); in testEviction_weightedLru()
[all …]
DCacheExpirationTest.java143 assertEquals(1, Iterators.size(cache.asMap().keySet().iterator())); in runExpirationTest()
262 Set<Integer> keySet = cache.asMap().keySet(); in testExpirationOrder_access() local
263 assertThat(keySet).has().exactly(0, 1, 2, 3, 4, 5, 6, 7, 8, 9); in testExpirationOrder_access()
267 assertThat(keySet).has().exactly(1, 2, 3, 4, 5, 6, 7, 8, 9); in testExpirationOrder_access()
273 assertThat(keySet).has().exactly(3, 4, 5, 6, 7, 8, 9, 0, 1, 2); in testExpirationOrder_access()
277 assertThat(keySet).has().exactly(4, 5, 6, 7, 8, 9, 0, 1, 2); in testExpirationOrder_access()
282 assertThat(keySet).has().exactly(4, 6, 8, 0, 1, 2, 5, 7, 9); in testExpirationOrder_access()
286 assertThat(keySet).has().exactly(6, 8, 0, 1, 2, 5, 7, 9); in testExpirationOrder_access()
288 assertThat(keySet).has().exactly(6, 8, 0, 1, 2, 5, 7, 9); in testExpirationOrder_access()
292 assertThat(keySet).has().exactly(8, 0, 1, 2, 5, 7, 9); in testExpirationOrder_access()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DTreeMultimapExplicitTest.java100 assertThat(tree.keySet()).has().exactly("tree", "google").inOrder(); in testMultimapCreateFromTreeMultimap()
105 assertThat(copy.keySet()).has().exactly("google", "tree").inOrder(); in testMultimapCreateFromTreeMultimap()
138 assertThat(multimap.keySet()).has().exactly(null, "tree", "google").inOrder(); in testOrderedKeySet()
197 SortedSet<String> keySet = multimap.keySet(); in testSortedKeySet() local
199 assertEquals(null, keySet.first()); in testSortedKeySet()
200 assertEquals("google", keySet.last()); in testSortedKeySet()
201 assertEquals(StringLength.COMPARATOR, keySet.comparator()); in testSortedKeySet()
202 assertEquals(Sets.newHashSet(null, "tree"), keySet.headSet("yahoo")); in testSortedKeySet()
203 assertEquals(Sets.newHashSet("google"), keySet.tailSet("yahoo")); in testSortedKeySet()
204 assertEquals(Sets.newHashSet("tree"), keySet.subSet("ask", "yahoo")); in testSortedKeySet()
DImmutableTableTest.java187 assertThat(table.row('b').keySet()).has().exactly(1, 2).inOrder(); in testCopyOf()
188 assertThat(ImmutableTable.copyOf(table).row('b').keySet()) in testCopyOf()
233 assertThat(copy.row('b').keySet()).has().exactly(1, 2).inOrder(); in testBuilder_orderRowsAndColumnsBy_putAll()
255 assertThat(table.row('c').keySet()).has().exactly(0, 3).inOrder(); in testBuilder_orderRowsAndColumnsBy_sparse()
256 assertThat(table.column(5).keySet()).has().exactly('e', 'x').inOrder(); in testBuilder_orderRowsAndColumnsBy_sparse()
277 assertThat(table.row('c').keySet()).has().exactly(1, 2, 3).inOrder(); in testBuilder_orderRowsAndColumnsBy_dense()
278 assertThat(table.column(1).keySet()).has().exactly('a', 'b', 'c').inOrder(); in testBuilder_orderRowsAndColumnsBy_dense()
296 assertThat(table.column(5).keySet()).has().exactly('e', 'x').inOrder(); in testBuilder_orderRowsBy_sparse()
313 assertThat(table.column(1).keySet()).has().exactly('a', 'b', 'c').inOrder(); in testBuilder_orderRowsBy_dense()
331 assertThat(table.row('c').keySet()).has().exactly(0, 3).inOrder(); in testBuilder_orderColumnsBy_sparse()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DTreeMultimapExplicitTest.java102 assertThat(tree.keySet()).has().exactly("tree", "google").inOrder(); in testMultimapCreateFromTreeMultimap()
107 assertThat(copy.keySet()).has().exactly("google", "tree").inOrder(); in testMultimapCreateFromTreeMultimap()
140 assertThat(multimap.keySet()).has().exactly(null, "tree", "google").inOrder(); in testOrderedKeySet()
199 SortedSet<String> keySet = multimap.keySet(); in testSortedKeySet() local
201 assertEquals(null, keySet.first()); in testSortedKeySet()
202 assertEquals("google", keySet.last()); in testSortedKeySet()
203 assertEquals(StringLength.COMPARATOR, keySet.comparator()); in testSortedKeySet()
204 assertEquals(Sets.newHashSet(null, "tree"), keySet.headSet("yahoo")); in testSortedKeySet()
205 assertEquals(Sets.newHashSet("google"), keySet.tailSet("yahoo")); in testSortedKeySet()
206 assertEquals(Sets.newHashSet("tree"), keySet.subSet("ask", "yahoo")); in testSortedKeySet()
[all …]
DSynchronizedMapTest.java106 @Override public Set<K> keySet() { in keySet() method in SynchronizedMapTest.TestMap
108 return super.keySet(); in keySet()
184 Set<String> keySet = map.keySet(); in testKeySet() local
185 assertTrue(keySet instanceof SynchronizedSet); in testKeySet()
186 assertSame(mutex, ((SynchronizedSet<?>) keySet).mutex); in testKeySet()
DImmutableTableTest.java188 assertThat(table.row('b').keySet()).has().exactly(1, 2).inOrder(); in testCopyOf()
189 assertThat(ImmutableTable.copyOf(table).row('b').keySet()) in testCopyOf()
234 assertThat(copy.row('b').keySet()).has().exactly(1, 2).inOrder(); in testBuilder_orderRowsAndColumnsBy_putAll()
256 assertThat(table.row('c').keySet()).has().exactly(0, 3).inOrder(); in testBuilder_orderRowsAndColumnsBy_sparse()
257 assertThat(table.column(5).keySet()).has().exactly('e', 'x').inOrder(); in testBuilder_orderRowsAndColumnsBy_sparse()
278 assertThat(table.row('c').keySet()).has().exactly(1, 2, 3).inOrder(); in testBuilder_orderRowsAndColumnsBy_dense()
279 assertThat(table.column(1).keySet()).has().exactly('a', 'b', 'c').inOrder(); in testBuilder_orderRowsAndColumnsBy_dense()
297 assertThat(table.column(5).keySet()).has().exactly('e', 'x').inOrder(); in testBuilder_orderRowsBy_sparse()
314 assertThat(table.column(1).keySet()).has().exactly('a', 'b', 'c').inOrder(); in testBuilder_orderRowsBy_dense()
332 assertThat(table.row('c').keySet()).has().exactly(0, 3).inOrder(); in testBuilder_orderColumnsBy_sparse()
[all …]
/external/mockito/src/test/java/org/mockito/internal/util/reflection/
DGenericMetadataSupportTest.java76 …assertThat(inferFrom(GenericsNest.class).actualTypeArguments().keySet()).hasSize(1).extracting("na… in can_get_type_variables_from_Class()
77 assertThat(inferFrom(ListOfNumbers.class).actualTypeArguments().keySet()).isEmpty(); in can_get_type_variables_from_Class()
78 …assertThat(inferFrom(ListOfAnyNumbers.class).actualTypeArguments().keySet()).hasSize(1).extracting… in can_get_type_variables_from_Class()
79 …assertThat(inferFrom(Map.class).actualTypeArguments().keySet()).hasSize(2).extracting("name").cont… in can_get_type_variables_from_Class()
80 assertThat(inferFrom(Serializable.class).actualTypeArguments().keySet()).isEmpty(); in can_get_type_variables_from_Class()
81 assertThat(inferFrom(StringList.class).actualTypeArguments().keySet()).isEmpty(); in can_get_type_variables_from_Class()
93 …From(GenericsNest.class.getGenericInterfaces()[0]).actualTypeArguments().keySet()).hasSize(2).extr… in can_get_type_variables_from_ParameterizedType()
94 …(ListOfAnyNumbers.class.getGenericInterfaces()[0]).actualTypeArguments().keySet()).hasSize(1).extr… in can_get_type_variables_from_ParameterizedType()
95 …assertThat(inferFrom(Integer.class.getGenericInterfaces()[0]).actualTypeArguments().keySet()).hasS… in can_get_type_variables_from_ParameterizedType()
96 …inferFrom(StringBuilder.class.getGenericInterfaces()[0]).actualTypeArguments().keySet()).isEmpty(); in can_get_type_variables_from_ParameterizedType()
[all …]
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCounter.java88 for (T item : map.keySet()) { in getTotal()
134 for (T key : map.keySet()) { in getKeysetSortedByCount()
146 s.addAll(map.keySet()); in getKeysetSortedByKey()
160 public Set<T> keySet() { in keySet() method in Counter
161 return map.keySet(); in keySet()
165 return map.keySet().iterator(); in iterator()
195 Iterator<T> i = map.keySet().iterator(); in compareTo()
196 Iterator<T> j = o.map.keySet().iterator(); in compareTo()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DCounter.java89 for (T item : map.keySet()) { in getTotal()
135 for (T key : map.keySet()) { in getKeysetSortedByCount()
147 s.addAll(map.keySet()); in getKeysetSortedByKey()
161 public Set<T> keySet() { in keySet() method in Counter
162 return map.keySet(); in keySet()
166 return map.keySet().iterator(); in iterator()
196 Iterator<T> i = map.keySet().iterator(); in compareTo()
197 Iterator<T> j = o.map.keySet().iterator(); in compareTo()
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultimapKeySetTester.java41 assertTrue(multimap().keySet().contains(entry.getKey())); in testKeySet()
49 assertTrue(multimap().keySet().contains(null)); in testKeySetContainsNullKeyPresent()
54 assertFalse(multimap().keySet().contains(null)); in testKeySetContainsNullKeyAbsent()
60 assertEquals(key0Count > 0, multimap().keySet().remove(sampleKeys().e0)); in testKeySetRemovePropagatesToMultimap()
69 Iterator<K> keyItr = multimap().keySet().iterator(); in testKeySetIteratorRemove()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/
DYamlStream.java69 if (!map1.keySet().equals(map2.keySet())) { in YamlStream()
70 throw new AssertionFailedError("Keyset: " + map1.keySet() + "; but was: " in YamlStream()
71 + map2.keySet()); in YamlStream()
73 for (Iterator<Object> iterator = map1.keySet().iterator(); iterator.hasNext();) { in YamlStream()
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DMapInterfaceTest.java180 Set<K> keySet = map.keySet(); in assertInvariants() local
185 assertEquals(map.size(), keySet.size()); in assertInvariants()
186 assertEquals(keySet.size() == 0, keySet.isEmpty()); in assertInvariants()
187 assertEquals(!keySet.isEmpty(), keySet.iterator().hasNext()); in assertInvariants()
190 for (K key : keySet) { in assertInvariants()
200 assertEquals(expectedKeySetHash, keySet.hashCode()); in assertInvariants()
309 assertTrue(map.containsKey(map.keySet().iterator().next())); in testContainsKey()
562 K key = map.keySet().iterator().next(); in testEntrySetRemoveDifferentValue()
909 smallerMap.remove(smallerMap.keySet().iterator().next()); in testEqualsForSmallerMap()
1042 keyToPut = map.keySet().iterator().next(); in testPutExistingKey()
[all …]
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/misc/
DDoubleKeyMap.java42 public Set<Key1> keySet() { in keySet() method in DoubleKeyMap
43 return data.keySet(); in keySet()
47 public Set<Key2> keySet(Key1 k1) { in keySet() method in DoubleKeyMap
50 return data2.keySet(); in keySet()
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.JavaExtensions/
DDictionaryExtensions.cs106 public static HashSet<object> keySet(IDictionary map) { in keySet() method in Antlr.Runtime.JavaExtensions.DictionaryExtensions
111 public static HashSet<TKey> keySet<TKey, TValue>(IDictionary<TKey, TValue> map) { in keySet() method in Antlr.Runtime.JavaExtensions.DictionaryExtensions
117 public static HashSet<TKey> keySet<TKey, TValue>(Dictionary<TKey, TValue> map) { in keySet() method in Antlr.Runtime.JavaExtensions.DictionaryExtensions
122 public static HashSet<object> keySet<TKey, TValue>(SortedList<TKey, TValue> map) { in keySet() method in Antlr.Runtime.JavaExtensions.DictionaryExtensions
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/
DDictionaryExtensions.cs111 public static HashSet<object> keySet( this IDictionary map ) in keySet() method in Antlr.Runtime.JavaExtensions.DictionaryExtensions
117 public static HashSet<TKey> keySet<TKey, TValue>( this IDictionary<TKey, TValue> map ) in keySet() method in Antlr.Runtime.JavaExtensions.DictionaryExtensions
124 public static HashSet<TKey> keySet<TKey, TValue>( this Dictionary<TKey, TValue> map ) in keySet() method in Antlr.Runtime.JavaExtensions.DictionaryExtensions
130 public static HashSet<object> keySet<TKey, TValue>( this SortedList<TKey, TValue> map ) in keySet() method in Antlr.Runtime.JavaExtensions.DictionaryExtensions
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/core/command/
DInvocationRecordTest.java154 assertEquals("empty", set, invocationRecord.keySet()); in testKeySet()
159 assertEquals("2", set, invocationRecord.keySet()); in testKeySet()
166 Set keySet = invocationRecord.keySet(); in testKeySet_Immutability() local
168 keySet.add("abc"); in testKeySet_Immutability()
/external/mockftpserver/tags/2.0-rc3/MockFtpServer/src/test/java/org/mockftpserver/core/command/
DInvocationRecordTest.java153 assertEquals("empty", set, invocationRecord.keySet()); in testKeySet()
158 assertEquals("2", set, invocationRecord.keySet()); in testKeySet()
165 Set keySet = invocationRecord.keySet(); in testKeySet_Immutability() local
167 keySet.add("abc"); in testKeySet_Immutability()
/external/mockftpserver/tags/2.1/src/test/java/org/mockftpserver/core/command/
DInvocationRecordTest.java153 assertEquals("empty", set, invocationRecord.keySet()); in testKeySet()
158 assertEquals("2", set, invocationRecord.keySet()); in testKeySet()
165 Set keySet = invocationRecord.keySet(); in testKeySet_Immutability() local
167 keySet.add("abc"); in testKeySet_Immutability()
/external/mockftpserver/tags/2.0.2/src/test/java/org/mockftpserver/core/command/
DInvocationRecordTest.java153 assertEquals("empty", set, invocationRecord.keySet()); in testKeySet()
158 assertEquals("2", set, invocationRecord.keySet()); in testKeySet()
165 Set keySet = invocationRecord.keySet(); in testKeySet_Immutability() local
167 keySet.add("abc"); in testKeySet_Immutability()
/external/mockftpserver/tags/2.3/src/test/java/org/mockftpserver/core/command/
DInvocationRecordTest.java153 assertEquals("empty", set, invocationRecord.keySet()); in testKeySet()
158 assertEquals("2", set, invocationRecord.keySet()); in testKeySet()
165 Set keySet = invocationRecord.keySet(); in testKeySet_Immutability() local
167 keySet.add("abc"); in testKeySet_Immutability()
/external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/test/java/org/mockftpserver/core/command/
DInvocationRecordTest.java153 assertEquals("empty", set, invocationRecord.keySet()); in testKeySet()
158 assertEquals("2", set, invocationRecord.keySet()); in testKeySet()
165 Set keySet = invocationRecord.keySet(); in testKeySet_Immutability() local
167 keySet.add("abc"); in testKeySet_Immutability()

12345678910>>...28