/libcore/ojluni/src/test/java/util/Map/ |
D | MapFactories.java | 23 package test.java.util.Map; 26 import java.util.Map; 45 Map<Integer, String> genMap() { in genMap() 46 Map<Integer, String> map = new HashMap<>(); in genMap() 55 Map<Integer, String> orig = genMap(); in copyOfResultsEqual() 56 Map<Integer, String> copy = Map.copyOf(orig); in copyOfResultsEqual() 64 Map<Integer, String> orig = genMap(); in copyOfModifiedUnequal() 65 Map<Integer, String> copy = Map.copyOf(orig); in copyOfModifiedUnequal() 74 Map<Integer, String> orig = genMap(); in copyOfIdentity() 75 Map<Integer, String> copy1 = Map.copyOf(orig); in copyOfIdentity() [all …]
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | EntryTest.java | 36 import java.util.Map; 58 Map.Entry e = new AbstractMap.SimpleEntry(k1, v1); in testConstructor1() 67 Map.Entry s = new AbstractMap.SimpleImmutableEntry(k1, v1); in testConstructor2() 76 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v1); in testConstructor3() 77 Map.Entry e = new AbstractMap.SimpleEntry(e2); in testConstructor3() 86 Map.Entry s2 = new AbstractMap.SimpleImmutableEntry(k1, v1); in testConstructor4() 87 Map.Entry s = new AbstractMap.SimpleImmutableEntry(s2); in testConstructor4() 97 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v1); in testEquals() 98 Map.Entry e = new AbstractMap.SimpleEntry(e2); in testEquals() 99 Map.Entry s2 = new AbstractMap.SimpleImmutableEntry(k1, v1); in testEquals() [all …]
|
D | TreeSubMapTest.java | 39 import java.util.Map; 232 Map.Entry e = (Map.Entry) it.next(); 272 Map.Entry e1 = map.lowerEntry(three); 275 Map.Entry e2 = map.lowerEntry(six); 278 Map.Entry e3 = map.lowerEntry(one); 281 Map.Entry e4 = map.lowerEntry(zero); 290 Map.Entry e1 = map.higherEntry(three); 293 Map.Entry e2 = map.higherEntry(zero); 296 Map.Entry e3 = map.higherEntry(five); 299 Map.Entry e4 = map.higherEntry(six); [all …]
|
/libcore/ojluni/src/main/java/java/sql/ |
D | SQLClientInfoException.java | 27 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() 175 … Map<String, ClientInfoStatus> failedProperties, in SQLClientInfoException() 206 … Map<String, ClientInfoStatus> failedProperties) { in SQLClientInfoException() 233 … Map<String, ClientInfoStatus> failedProperties, in SQLClientInfoException() 265 … Map<String, ClientInfoStatus> failedProperties) { in SQLClientInfoException() 295 … Map<String, ClientInfoStatus> failedProperties, in SQLClientInfoException() [all …]
|
D | Array.java | 156 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/luni/src/test/java/libcore/java/util/ |
D | LinkedHashMapTest.java | 30 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 …]
|
D | OldMapEntryTest.java | 24 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()
|
D | MapDefaultMethodTester.java | 27 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 …]
|
D | EvilMapTest.java | 25 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/ |
D | ZoneName.java | 28 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/ |
D | ProcessEnvironment.java | 64 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/ |
D | DateTimeTextProvider.java | 89 import java.util.Map; 90 import java.util.Map.Entry; 271 Map<String, Integer> map = CalendarDataUtility.retrieveJavaTimeFieldValueNames( in getTextIterator() 279 for (Map.Entry<String, Integer> entry : map.entrySet()) { in getTextIterator() 292 for (Map.Entry<String, Integer> entry : map.entrySet()) { in getTextIterator() 297 for (Map.Entry<String, Integer> entry : map.entrySet()) { in getTextIterator() 302 for (Map.Entry<String, Integer> entry : map.entrySet()) { in getTextIterator() 330 Map<TextStyle, Map<Long, String>> styleMap = new HashMap<>(); in createStore() 337 … Map<String, Integer> displayNames = CalendarDataUtility.retrieveJavaTimeFieldValueNames( in createStore() 340 Map<Long, String> map = new HashMap<>(); in createStore() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | Map.java | 156 public interface Map<K, V> { interface 324 void putAll(Map<? extends K, ? extends V> m); in putAll() 388 Set<Map.Entry<K, V>> entrySet(); in entrySet() 498 … public static <K extends Comparable<? super K>, V> Comparator<Map.Entry<K, V>> comparingByKey() { in comparingByKey() 499 return (Comparator<Map.Entry<K, V>> & Serializable) in comparingByKey() 515 …public static <K, V extends Comparable<? super V>> Comparator<Map.Entry<K, V>> comparingByValue() { in comparingByValue() 516 return (Comparator<Map.Entry<K, V>> & Serializable) in comparingByValue() 533 public static <K, V> Comparator<Map.Entry<K, V>> comparingByKey(Comparator<? super K> cmp) { in comparingByKey() 535 return (Comparator<Map.Entry<K, V>> & Serializable) in comparingByKey() 552 … public static <K, V> Comparator<Map.Entry<K, V>> comparingByValue(Comparator<? super V> cmp) { in comparingByValue() [all …]
|
D | EnumMap.java | 29 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 …]
|
D | KeyValueHolder.java | 52 final class KeyValueHolder<K,V> implements Map.Entry<K,V> { 102 if (!(o instanceof Map.Entry)) in equals() 104 Map.Entry<?,?> e = (Map.Entry<?,?>)o; in equals()
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | DomainLoadStoreParameterTest.java | 25 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/main/java/java/net/ |
D | CookieHandler.java | 28 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/luni/src/test/java/libcore/java/net/ |
D | CookiesMCompatibilityTest.java | 27 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/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | GroupByOpTest.java | 35 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() 85 …Map<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/jsr166-tests/src/test/java/jsr166/ |
D | TreeSubMapTest.java | 13 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/luni/src/test/filesystems/src/mypackage/ |
D | MockFileSystem.java | 28 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()
|
/libcore/ojluni/annotations/mmodule/java/util/ |
D | LinkedHashMap.annotated.java | 31 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() 53 public java.util.Map.Entry<K,V> eldest() { throw new RuntimeException("Stub!"); } in eldest() 55 protected boolean removeEldestEntry(java.util.Map.Entry<K,V> eldest) { throw new RuntimeException("… in removeEldestEntry() 61 public java.util.Set<java.util.Map.Entry<K,V>> entrySet() { throw new RuntimeException("Stub!"); } in entrySet()
|
/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
D | ConcurrentHashMapTest.java | 26 import java.util.Map; 55 static class SumKeys implements BiFunction<Map.Entry<Long,Long>, 56 Map.Entry<Long,Long>, Map.Entry<Long,Long>> { 57 public Map.Entry<Long,Long> apply(Map.Entry<Long,Long> x, Map.Entry<Long,Long> y) { in apply() 64 static class IncrementKey implements Function<Map.Entry<Long, Long>, Map.Entry<Long, Long>> { 65 public Map.Entry<Long, Long> apply(Map.Entry<Long, Long> in) { in apply() 72 static class KeyAsDouble implements ToDoubleFunction<Map.Entry<Long, Long>> { 73 public double applyAsDouble(Map.Entry<Long, Long> in) { in applyAsDouble() 78 static class KeyAsInt implements ToIntFunction<Map.Entry<Long, Long>> { 79 public int applyAsInt(Map.Entry<Long, Long> in) { in applyAsInt() [all …]
|
/libcore/ojluni/src/main/java/java/security/ |
D | DomainLoadStoreParameter.java | 109 private final Map<String,ProtectionParameter> protectionParams; 132 Map<String,ProtectionParameter> protectionParams) { in DomainLoadStoreParameter() 157 public Map<String,ProtectionParameter> getProtectionParams() { in getProtectionParams()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_MapTest.java | 25 import java.util.Map; 33 private final Map<String, Integer> modifiableMap; 34 private final Map<String, Integer> unmodifiableMap; 36 public Support_MapTest(String p1, Map<String, Integer> modifiableMap) { in Support_MapTest() 60 private void testContents(Map<String, Integer> map) { in testContents() 84 Set<Map.Entry<String, Integer>> referenceEntrySet, in testEntrySet() 85 Set<Map.Entry<String, Integer>> entrySet) { in testEntrySet() 93 crossCheckOrdering(referenceEntrySet, entrySet, Map.Entry.class); in testEntrySet()
|