Home
last modified time | relevance | path

Searched refs:elt (Results 1 – 8 of 8) sorted by relevance

/libcore/ojluni/src/test/java/util/EnumSet/
DInsertWrongType.java91 static void addIllTypedElt(Class enumClass, Enum elt) { in addIllTypedElt() argument
94 set.add(elt); in addIllTypedElt()
99 static void addAllIllTypedElt(Class enumClass, Enum elt) { in addAllIllTypedElt() argument
102 set.addAll(Collections.singleton(elt)); in addAllIllTypedElt()
158 static void putIllTypedKey(Class enumClass, Enum elt) { in putIllTypedKey() argument
161 map.put(elt, "foofy"); in putIllTypedKey()
166 static void putAllIllTypedKey(Class enumClass, Enum elt) { in putAllIllTypedKey() argument
169 src.put(elt, "goofy"); in putAllIllTypedKey()
176 static void putAllIllTypedKeyEnumMap(Class enumClass, Enum elt) { in putAllIllTypedKeyEnumMap() argument
178 Map src = new EnumMap(elt.getClass()); in putAllIllTypedKeyEnumMap()
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DCollection8Test.java80 final Object elt = impl.makeElement(1); in testForEachConcurrentStressTest() local
88 c.stream().forEach((x) -> { assertSame(x, elt); }); }; in testForEachConcurrentStressTest()
92 assertTrue(c.add(elt)); in testForEachConcurrentStressTest()
93 assertTrue(c.remove(elt)); in testForEachConcurrentStressTest()
/libcore/ojluni/src/main/java/java/util/
DStringJoiner.java199 final String elt = String.valueOf(newElement); in add() local
207 len += elt.length(); in add()
208 elts[size++] = elt; in add()
DJumboEnumSet.java364 for (long elt : elements) in recalculateSize()
365 size += Long.bitCount(elt); in recalculateSize()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DExecutorCompletionService9Test.java137 Integer elt = results.get(0); in testSolveAny() local
138 assertTrue(elt.equals(1) || elt.equals(2)); in testSolveAny()
DCollection8Test.java682 final Object elt = impl.makeElement(1);
690 c.stream().forEach(x -> assertSame(x, elt)); };
694 assertTrue(c.add(elt));
695 assertTrue(c.remove(elt));
/libcore/ojluni/src/main/java/java/util/prefs/
DXmlSupport.java139 private static void putPreferencesInXml(Element elt, Document doc, in putPreferencesInXml() argument
152 elt.getParentNode().removeChild(elt); in putPreferencesInXml()
157 Element map = (Element) elt.appendChild(doc.createElement("map")); in putPreferencesInXml()
179 elt.appendChild(doc.createElement("node")); in putPreferencesInXml()
/libcore/ojluni/src/test/java/util/BitSet/
DBSMethods.java80 for (int elt : elts) in makeSet()
81 s.set(elt); in makeSet()