Home
last modified time | relevance | path

Searched refs:Map (Results 1 – 25 of 361) sorted by relevance

12345678910>>...15

/libcore/jsr166-tests/src/test/java/jsr166/
DEntryTest.java10 import java.util.Map;
35 Map.Entry e = new AbstractMap.SimpleEntry(k1, v1); in testConstructor1()
44 Map.Entry s = new AbstractMap.SimpleImmutableEntry(k1, v1); in testConstructor2()
53 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v1); in testConstructor3()
54 Map.Entry e = new AbstractMap.SimpleEntry(e2); in testConstructor3()
63 Map.Entry s2 = new AbstractMap.SimpleImmutableEntry(k1, v1); in testConstructor4()
64 Map.Entry s = new AbstractMap.SimpleImmutableEntry(s2); in testConstructor4()
74 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v1); in testEquals()
75 Map.Entry e = new AbstractMap.SimpleEntry(e2); in testEquals()
76 Map.Entry s2 = new AbstractMap.SimpleImmutableEntry(k1, v1); in testEquals()
[all …]
DTreeSubMapTest.java13 import java.util.Map;
209 Map.Entry e = (Map.Entry) it.next();
249 Map.Entry e1 = map.lowerEntry(three);
252 Map.Entry e2 = map.lowerEntry(six);
255 Map.Entry e3 = map.lowerEntry(one);
258 Map.Entry e4 = map.lowerEntry(zero);
267 Map.Entry e1 = map.higherEntry(three);
270 Map.Entry e2 = map.higherEntry(zero);
273 Map.Entry e3 = map.higherEntry(five);
276 Map.Entry e4 = map.higherEntry(six);
[all …]
/libcore/ojluni/src/main/java/java/sql/
DSQLClientInfoException.java27 import java.util.Map;
53 private Map<String, ClientInfoStatus> failedProperties;
92 public SQLClientInfoException(Map<String, ClientInfoStatus> failedProperties) { in SQLClientInfoException()
118 public SQLClientInfoException(Map<String, ClientInfoStatus> failedProperties, in SQLClientInfoException()
148 Map<String, ClientInfoStatus> failedProperties) { in SQLClientInfoException()
175Map<String, ClientInfoStatus> failedProperties, in SQLClientInfoException()
206Map<String, ClientInfoStatus> failedProperties) { in SQLClientInfoException()
233Map<String, ClientInfoStatus> failedProperties, in SQLClientInfoException()
265Map<String, ClientInfoStatus> failedProperties) { in SQLClientInfoException()
295Map<String, ClientInfoStatus> failedProperties, in SQLClientInfoException()
[all …]
DArray.java156 Object getArray(java.util.Map<String,Class<?>> map) throws SQLException; in getArray()
219 Object getArray(long index, int count, java.util.Map<String,Class<?>> map) in getArray()
276 ResultSet getResultSet (java.util.Map<String,Class<?>> map) throws SQLException; in getResultSet()
345 java.util.Map<String,Class<?>> map) in getResultSet()
/libcore/ojluni/src/main/java/java/util/
DNavigableMap.java111 Map.Entry<K,V> lowerEntry(K key); in lowerEntry()
140 Map.Entry<K,V> floorEntry(K key); in floorEntry()
169 Map.Entry<K,V> ceilingEntry(K key); in ceilingEntry()
198 Map.Entry<K,V> higherEntry(K key); in higherEntry()
221 Map.Entry<K,V> firstEntry(); in firstEntry()
230 Map.Entry<K,V> lastEntry(); in lastEntry()
239 Map.Entry<K,V> pollFirstEntry(); in pollFirstEntry()
248 Map.Entry<K,V> pollLastEntry(); in pollLastEntry()
DMap.java128 public interface Map<K, V> { interface
296 void putAll(Map<? extends K, ? extends V> m); in putAll()
360 Set<Map.Entry<K, V>> entrySet(); in entrySet()
470 … public static <K extends Comparable<? super K>, V> Comparator<Map.Entry<K, V>> comparingByKey() { in comparingByKey()
471 return (Comparator<Map.Entry<K, V>> & Serializable) in comparingByKey()
487 …public static <K, V extends Comparable<? super V>> Comparator<Map.Entry<K, V>> comparingByValue() { in comparingByValue()
488 return (Comparator<Map.Entry<K, V>> & Serializable) in comparingByValue()
505 public static <K, V> Comparator<Map.Entry<K, V>> comparingByKey(Comparator<? super K> cmp) { in comparingByKey()
507 return (Comparator<Map.Entry<K, V>> & Serializable) in comparingByKey()
524 … public static <K, V> Comparator<Map.Entry<K, V>> comparingByValue(Comparator<? super V> cmp) { in comparingByValue()
[all …]
DEnumMap.java29 import java.util.Map.Entry;
168 public EnumMap(Map<K, ? extends V> m) { in EnumMap()
333 public void putAll(Map<? extends K, ? extends V> m) { in putAll()
370 private transient Set<Map.Entry<K,V>> entrySet;
465 public Set<Map.Entry<K,V>> entrySet() { in entrySet()
466 Set<Map.Entry<K,V>> es = entrySet; in entrySet()
473 private class EntrySet extends AbstractSet<Map.Entry<K,V>> {
474 public Iterator<Map.Entry<K,V>> iterator() { in iterator()
479 if (!(o instanceof Map.Entry)) in contains()
481 Map.Entry<?,?> entry = (Map.Entry<?,?>)o; in contains()
[all …]
DAbstractMap.java27 import java.util.Map.Entry;
68 public abstract class AbstractMap<K,V> implements Map<K,V> {
144 Iterator<Map.Entry<K,V>> i = entrySet().iterator(); in containsKey()
279 public void putAll(Map<? extends K, ? extends V> m) { in putAll()
280 for (Map.Entry<? extends K, ? extends V> e : m.entrySet()) in putAll()
479 if (!(o instanceof Map)) in equals()
481 Map<?,?> m = (Map<?,?>) o; in equals()
691 if (!(o instanceof Map.Entry)) in equals()
693 Map.Entry<?,?> e = (Map.Entry<?,?>)o; in equals()
822 if (!(o instanceof Map.Entry)) in equals()
[all …]
/libcore/ojluni/src/main/java/java/security/cert/
DPKIXRevocationChecker.java33 import java.util.Map;
34 import java.util.Map.Entry;
102 private Map<X509Certificate, byte[]> ocspResponses = Collections.emptyMap();
194 public void setOcspResponses(Map<X509Certificate, byte[]> responses) in setOcspResponses()
199 Map<X509Certificate, byte[]> copy = new HashMap<>(responses.size()); in setOcspResponses()
200 for (Map.Entry<X509Certificate, byte[]> e : responses.entrySet()) { in setOcspResponses()
217 public Map<X509Certificate, byte[]> getOcspResponses() { in getOcspResponses()
218 Map<X509Certificate, byte[]> copy = new HashMap<>(ocspResponses.size()); in getOcspResponses()
219 for (Map.Entry<X509Certificate, byte[]> e : ocspResponses.entrySet()) { in getOcspResponses()
269 for (Map.Entry<X509Certificate, byte[]> entry : in clone()
/libcore/luni/src/test/java/libcore/java/util/
DLinkedHashMapTest.java30 import java.util.Map;
46 Map<String, String> m = new LinkedHashMap<String, String>(8, .75f, true); in test_getOrDefault()
51 Map.Entry<String, String> newest = null; in test_getOrDefault()
52 for (Map.Entry<String, String> e : m.entrySet()) { in test_getOrDefault()
68 Map<String, String> m = new LinkedHashMap<String, String>(8, .75f, true); in test_putIfAbsent()
72 Map.Entry<String, String> newest = null; in test_putIfAbsent()
73 for (Map.Entry<String, String> e : m.entrySet()) { in test_putIfAbsent()
81 for (Map.Entry<String, String> e : m.entrySet()) { in test_putIfAbsent()
99 Map<String, String> m = new LinkedHashMap<>(8, .75f, true /*accessOrder*/); in test_replace$K$V$V()
104 Map.Entry<String, String> newest = null; in test_replace$K$V$V()
[all …]
DOldMapEntryTest.java24 import java.util.Map;
28 Map.Entry me = null;
75 me = (Map.Entry)i.next(); in testSetValue()
89 Map.Entry me1 = (Map.Entry)i.next(); in testEquals()
97 Map.Entry me1 = (Map.Entry)i.next(); in testHashCode()
108 me = (Map.Entry)i.next(); in setUp()
DMapDefaultMethodTester.java27 import java.util.Map;
48 public static void test_getOrDefault(Map<String, String> m, boolean acceptsNullKey, in test_getOrDefault()
100 V expected, Map<K, V> map, K key, V defaultValue) { in checkGetOrDefault()
110 private static<K, V> V getOrDefault_hashMap(Map<K, V> map, K key, V defaultValue) { in getOrDefault_hashMap()
118 private static<K, V> V getOrDefault_optimizeForAbsent(Map<K, V> map, K key, V defaultValue) { in getOrDefault_optimizeForAbsent()
126 private static<K, V> V getOrDefault_optimizeForPresent(Map<K, V> map, K key, V defaultValue) { in getOrDefault_optimizeForPresent()
134 public static void test_forEach(Map<Integer, Double> m) { in test_forEach()
135 Map<Integer, Double> replica = new HashMap<>(); in test_forEach()
151 public static void test_putIfAbsent(Map<Integer, Double> m, boolean acceptsNullKey, in test_putIfAbsent()
192 public static void test_remove(Map<Integer, Double> m, boolean acceptsNullKey, in test_remove()
[all …]
DEvilMapTest.java25 import java.util.Map;
50 Map<String, String> evil = new EvilMap<String, String>(); in test_48055_HashMap()
60 Map<String, String> evil = new EvilMap<String, String>(); in test_48055_Hashtable()
70 Map<String, String> evil = new EvilMap<String, String>(); in test_48055_LinkedHashMap()
80 Map<String, String> evil = new EvilMap<String, String>(); in test_48055_WeakHashMap()
90 Map<String, String> evil = new EvilMap<String, String>(); in test_48055_IdentityHashMap()
100 Map<String, String> evil = new EvilMap<String, String>(); in test_48055_ConcurrentHashMap()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DZoneName.java28 import java.util.Map;
39 Map<String, String> map = mzoneToZidL.get(mzone); in toZid()
752 private static final Map<String, String> zidToMzone = new HashMap<>();
753 private static final Map<String, String> mzoneToZid = new HashMap<>();
754 private static final Map<String, Map<String, String>> mzoneToZidL = new HashMap<>();
755 private static final Map<String, String> aliases = new HashMap<>();
765 Map<String, String> map = mzoneToZidL.get(mzone);
/libcore/ojluni/src/main/java/java/lang/
DProcessEnvironment.java64 private static final Map<String,String> theUnmodifiableEnvironment;
89 static Map<String,String> getenv() { in getenv()
95 static Map<String,String> environment() { in environment()
97 ((Map<Variable,Value>)(theEnvironment.clone())); in environment()
101 static Map<String,String> emptyEnvironment(int capacity) { in emptyEnvironment()
224 private Map<Variable,Value> m;
228 public StringEnvironment(Map<Variable,Value> m) {this.m = m;} in StringEnvironment()
251 public Set<Map.Entry<String,String>> entrySet() { in entrySet()
272 for (Map.Entry<Variable,Value> entry : m.entrySet()) { in toEnvironmentBlock()
280 for (Map.Entry<Variable,Value> entry : m.entrySet()) { in toEnvironmentBlock()
[all …]
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeTextProvider.java88 import java.util.Map;
89 import java.util.Map.Entry;
270 Map<String, Integer> map = CalendarDataUtility.retrieveJavaTimeFieldValueNames( in getTextIterator()
278 for (Map.Entry<String, Integer> entry : map.entrySet()) { in getTextIterator()
291 for (Map.Entry<String, Integer> entry : map.entrySet()) { in getTextIterator()
296 for (Map.Entry<String, Integer> entry : map.entrySet()) { in getTextIterator()
301 for (Map.Entry<String, Integer> entry : map.entrySet()) { in getTextIterator()
329 Map<TextStyle, Map<Long, String>> styleMap = new HashMap<>(); in createStore()
336Map<String, Integer> displayNames = CalendarDataUtility.retrieveJavaTimeFieldValueNames( in createStore()
339 Map<Long, String> map = new HashMap<>(); in createStore()
[all …]
/libcore/luni/src/test/java/libcore/java/security/
DDomainLoadStoreParameterTest.java25 import java.util.Map;
65 Map<String, KeyStore.ProtectionParameter> protectionParameters = in testGetProtectionParams()
69 Map<String, KeyStore.ProtectionParameter> returnedParams = in testGetProtectionParams()
82 Map<String, KeyStore.ProtectionParameter> originalProtectionParameters in testGetProtectionParams()
103 private Map<String, KeyStore.ProtectionParameter> createNonEmptyParameters( in createNonEmptyParameters()
105 Map<String, KeyStore.ProtectionParameter> protectionParameters = new HashMap<>(); in createNonEmptyParameters()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DReduceByOpTest.java35 import java.util.Map;
51Map<Boolean,List<Integer>> gbResult = data.stream().collect(groupingBy(LambdaTestHelpers.forPredic… in testOps()
52Map<Boolean, Integer> result = data.stream().collect(groupingBy(LambdaTestHelpers.forPredicate(pEv… in testOps()
54 for (Map.Entry<Boolean, Integer> entry : result.entrySet()) { in testOps()
61Map<Integer, List<Integer>> mgResult = exerciseTerminalOps(data, s -> s.collect(groupingBy(mId))); in testOps()
62Map<Integer, Integer> miResult = exerciseTerminalOps(data, s -> s.collect(groupingBy(mId, reducing… in testOps()
64 for (Map.Entry<Integer, Integer> entry : miResult.entrySet()) { in testOps()
DCollectionAndMapModifyStreamTest.java109 Map<Integer, Integer> content = new HashMap<>(); in createMaps()
114 Map<String, Supplier<Map<Integer, Integer>>> maps = new HashMap<>(); in createMaps()
136 for (Map.Entry<String, Supplier<Map<Integer, Integer>>> e : maps.entrySet()) { in createMaps()
145 public void testMapKeysSizeRemove(String name, Supplier<Map<Integer, Integer>> c) { in testMapKeysSizeRemove()
150 public void testMapValuesSizeRemove(String name, Supplier<Map<Integer, Integer>> c) { in testMapValuesSizeRemove()
155 public void testMapEntriesSizeRemove(String name, Supplier<Map<Integer, Integer>> c) { in testMapEntriesSizeRemove()
159 private void testEntrySetSizeRemove(String name, Set<Map.Entry<Integer, Integer>> c) { in testEntrySetSizeRemove()
160 Map.Entry<Integer, Integer> first = c.iterator().next(); in testEntrySetSizeRemove()
162 Stream<Map.Entry<Integer, Integer>> s = c.stream(); in testEntrySetSizeRemove()
163 Map.Entry<Integer, Integer> second = c.iterator().next(); in testEntrySetSizeRemove()
DGroupByOpTest.java35 import java.util.Map;
63 Collector<Integer, Map<Boolean, List<Integer>>, Map<Boolean, List<Integer>>> collector in testBypassCollect()
64 …= (Collector<Integer, Map<Boolean, List<Integer>>, Map<Boolean, List<Integer>>>) Collectors.groupi… in testBypassCollect()
66 Map<Boolean, List<Integer>> m = collector.supplier().get(); in testBypassCollect()
85Map<Boolean,List<Integer>> result = countTo(10).stream().collect(Collectors.groupingBy(LambdaTestH… in testGroupBy()
134 Collector<Integer, ?, Map<Object, List<Integer>>> tab = Collectors.groupingBy(md.m); in testOps()
135 Map<Object, List<Integer>> result = in testOps()
155 …static <K, V> void assertMultiMapEquals(Map<K, ? extends Collection<V>> a, Map<K, ? extends Collec… in assertMultiMapEquals()
159 …static<K, V> boolean multiMapEquals(Map<K, ? extends Collection<V>> a, Map<K, ? extends Collection… in multiMapEquals()
/libcore/luni/src/test/java/libcore/java/net/
DCookiesMCompatibilityTest.java27 import java.util.Map;
38 Map<String, List<String>> responseHeaders = Collections.singletonMap("Set-Cookie", in testCookiesWithoutLeadingPeriod()
44 Map<String, List<String>> cookies = cm.get( in testCookiesWithoutLeadingPeriod()
55 Map<String, List<String>> responseHeaders = Collections.singletonMap("Set-Cookie", in testCookiesWithLeadingPeriod()
58 Map<String, List<String>> cookies = cm.get( in testCookiesWithLeadingPeriod()
/libcore/ojluni/src/main/java/java/net/
DCookieHandler.java28 import java.util.Map;
130 public abstract Map<String, List<String>>
131 get(URI uri, Map<String, List<String>> requestHeaders) in get()
148 put(URI uri, Map<String, List<String>> responseHeaders) in put()
/libcore/ojluni/annotations/mmodule/java/util/
DLinkedHashMap.annotated.java31 public class LinkedHashMap<K, V> extends java.util.HashMap<K,V> implements java.util.Map<K,V> {
39 public LinkedHashMap(java.util.Map<? extends K, ? extends V> m) { throw new RuntimeException("Stub!… in LinkedHashMap()
52 public java.util.Map.Entry<K,V> eldest() { throw new RuntimeException("Stub!"); } in eldest()
54 protected boolean removeEldestEntry(java.util.Map.Entry<K,V> eldest) { throw new RuntimeException("… in removeEldestEntry()
60 public java.util.Set<java.util.Map.Entry<K,V>> entrySet() { throw new RuntimeException("Stub!"); } in entrySet()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DCookieHandlerTest.java24 import java.util.Map;
53 public Map get(URI uri, Map requestHeaders) throws IOException { in get()
57 public void put(URI uri, Map responseHeaders) throws IOException { in put()
/libcore/luni/src/test/filesystems/src/mypackage/
DMockFileSystem.java28 import java.util.Map;
33 private Map<String, ?> env;
36 public MockFileSystem(URI uri, Map<String, ?> env) { in MockFileSystem()
41 public MockFileSystem(Path path, Map<String, ?> env) { in MockFileSystem()
54 public Map<String, ?> getEnv() { in getEnv()

12345678910>>...15