Home
last modified time | relevance | path

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

12345678910>>...29

/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/cglib-and-asm/src/org/mockito/cglib/beans/
DBeanMap.java214 return keySet().contains(key); in containsKey()
218 for (Iterator it = keySet().iterator(); it.hasNext();) { in containsValue()
227 return keySet().size(); in size()
239 for (Iterator it = t.keySet().iterator(); it.hasNext();) { in putAll()
253 for (Iterator it = keySet().iterator(); it.hasNext();) { in equals()
269 for (Iterator it = keySet().iterator(); it.hasNext();) { in hashCode()
281 for (Iterator it = keySet().iterator(); it.hasNext();) { in entrySet()
289 Set keys = keySet(); in values()
304 for (Iterator it = keySet().iterator(); it.hasNext();) { in toString()
/external/jetty/src/java/org/eclipse/jetty/util/
DAttributesMap.java92 return Collections.enumeration(_map.keySet()); in getAttributeNames()
101 return _map.keySet(); in getAttributeNameSet()
117 return Collections.enumeration(((AttributesMap)attrs)._map.keySet()); in getAttributeNamesCopy()
147 public Set<String> keySet() in keySet() method in AttributesMap
149 return _map.keySet(); in keySet()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCounter.java86 for (T item : map.keySet()) { in getTotal()
132 for (T key : map.keySet()) { in getKeysetSortedByCount()
144 s.addAll(map.keySet()); in getKeysetSortedByKey()
158 public Set<T> keySet() { in keySet() method in Counter
159 return map.keySet(); in keySet()
163 return map.keySet().iterator(); in iterator()
193 Iterator<T> i = map.keySet().iterator(); in compareTo()
194 Iterator<T> j = o.map.keySet().iterator(); in compareTo()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DCounter.java87 for (T item : map.keySet()) { in getTotal()
133 for (T key : map.keySet()) { in getKeysetSortedByCount()
145 s.addAll(map.keySet()); in getKeysetSortedByKey()
159 public Set<T> keySet() { in keySet() method in Counter
160 return map.keySet(); in keySet()
164 return map.keySet().iterator(); in iterator()
194 Iterator<T> i = map.keySet().iterator(); in compareTo()
195 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/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DRelation.java93 for (K key : data.keySet()) { in keyValueSet()
132 public Set<K> keySet() { in keySet() method in Relation
133 return data.keySet(); in keySet()
171 for (K key : t.keySet()) { in putAll()
177 for (K key : t.keySet()) { in putAll()
258 for (V value : source.data.keySet()) { in addAllInverted()
267 for (V value : source.keySet()) { in addAllInverted()
282 for (K key : data.keySet()) { in freeze()
299 for (K key : toBeRemoved.keySet()) { in removeAll()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DRelation.java95 for (K key : data.keySet()) { in keyValueSet()
134 public Set<K> keySet() { in keySet() method in Relation
135 return data.keySet(); in keySet()
173 for (K key : t.keySet()) { in putAll()
179 for (K key : t.keySet()) { in putAll()
260 for (V value : source.data.keySet()) { in addAllInverted()
269 for (V value : source.keySet()) { in addAllInverted()
284 for (K key : data.keySet()) { in freeze()
301 for (K key : toBeRemoved.keySet()) { in removeAll()
/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/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/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/jetty/src/java/org/eclipse/jetty/util/log/jmx/
DLogMBean.java40 List<String> keySet = new ArrayList<String>(Log.getLoggers().keySet()); in getLoggers() local
41 return keySet; in getLoggers()
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/
DUnicodeMap.java508 return putAll(keySet(null), value);
516 public UnicodeSet keySet(T value, UnicodeSet result) {
524 for (String key : stringMap.keySet()) {
538 public UnicodeSet keySet(T value) {
539 return keySet(value,null);
545 public UnicodeSet keySet() {
553 result.addAll(stringMap.keySet());
660 UnicodeSet set = other.keySet(value);
704 for (String s : stringMap.keySet()) {
712 UnicodeSet s = keySet(value);
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/
DUnicodeMap.java509 return putAll(keySet(null), value);
517 public UnicodeSet keySet(T value, UnicodeSet result) {
525 for (String key : stringMap.keySet()) {
539 public UnicodeSet keySet(T value) {
540 return keySet(value,null);
546 public UnicodeSet keySet() {
554 result.addAll(stringMap.keySet());
661 UnicodeSet set = other.keySet(value);
705 for (String s : stringMap.keySet()) {
713 UnicodeSet s = keySet(value);
[all …]

12345678910>>...29