/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | EnumSetTest.java | 22 import java.util.EnumSet; 76 EnumSet.noneOf((Class) null); in test_NoneOf_LClass() 83 EnumSet.noneOf(Enum.class); in test_NoneOf_LClass() 92 EnumSet.noneOf(c); in test_NoneOf_LClass() 98 EnumSet<EnumWithAllInnerClass> setWithInnerClass = EnumSet in test_NoneOf_LClass() 106 EnumSet.noneOf(hc); in test_NoneOf_LClass() 112 EnumSet<HugeEnumWithInnerClass> hugeSetWithInnerClass = EnumSet in test_NoneOf_LClass() 121 EnumSet<HugeEnumCount> set; in test_iterator_HugeEnumSet() 126 set = EnumSet.range(HugeEnumCount.NO1, HugeEnumCount.NO65); in test_iterator_HugeEnumSet() 134 set = EnumSet.range(HugeEnumCount.NO1, HugeEnumCount.NO130); in test_iterator_HugeEnumSet() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | EnumSet.java | 80 public abstract class EnumSet<E extends Enum<E>> extends AbstractSet<E> class 97 EnumSet(Class<E>elementType, Enum<?>[] universe) { in EnumSet() method in EnumSet 111 public static <E extends Enum<E>> EnumSet<E> noneOf(Class<E> elementType) { in noneOf() 132 public static <E extends Enum<E>> EnumSet<E> allOf(Class<E> elementType) { in allOf() 133 EnumSet<E> result = noneOf(elementType); in allOf() 153 public static <E extends Enum<E>> EnumSet<E> copyOf(EnumSet<E> s) { in copyOf() 171 public static <E extends Enum<E>> EnumSet<E> copyOf(Collection<E> c) { in copyOf() 172 if (c instanceof EnumSet) { in copyOf() 173 return ((EnumSet<E>)c).clone(); in copyOf() 179 EnumSet<E> result = EnumSet.of(first); in copyOf() [all …]
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | TestFlagExpectedOp.java | 27 import java.util.EnumSet; 35 EnumSet<StreamOpFlag> known = EnumSet.noneOf(StreamOpFlag.class); 36 EnumSet<StreamOpFlag> preserve = EnumSet.noneOf(StreamOpFlag.class); 37 EnumSet<StreamOpFlag> notKnown = EnumSet.noneOf(StreamOpFlag.class); 43 Builder<T> known(EnumSet<StreamOpFlag> known) { in known() 48 Builder<T> preserve(EnumSet<StreamOpFlag> preserve) { in preserve() 53 Builder<T> notKnown(EnumSet<StreamOpFlag> notKnown) { in notKnown() 68 final EnumSet<StreamOpFlag> known; 69 final EnumSet<StreamOpFlag> preserve; 70 final EnumSet<StreamOpFlag> notKnown; [all …]
|
D | StreamOpFlagTestHelper.java | 25 import java.util.EnumSet; 30 private static final EnumSet<StreamOpFlag> allStreamFlags; 33 allStreamFlags = EnumSet.allOf(StreamOpFlag.class); 34 for (StreamOpFlag f : EnumSet.allOf(StreamOpFlag.class)) 40 static EnumSet<StreamOpFlag> allStreamFlags() { in allStreamFlags()
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | TestFlagExpectedOp.java | 27 import java.util.EnumSet; 36 EnumSet<StreamOpFlag> known = EnumSet.noneOf(StreamOpFlag.class); 37 EnumSet<StreamOpFlag> preserve = EnumSet.noneOf(StreamOpFlag.class); 38 EnumSet<StreamOpFlag> notKnown = EnumSet.noneOf(StreamOpFlag.class); 44 Builder<T> known(EnumSet<StreamOpFlag> known) { in known() 49 Builder<T> preserve(EnumSet<StreamOpFlag> preserve) { in preserve() 54 Builder<T> notKnown(EnumSet<StreamOpFlag> notKnown) { in notKnown() 69 final EnumSet<StreamOpFlag> known; 70 final EnumSet<StreamOpFlag> preserve; 71 final EnumSet<StreamOpFlag> notKnown; [all …]
|
D | StreamOpFlagTestHelper.java | 25 import java.util.EnumSet; 33 private static final EnumSet<StreamOpFlag> allStreamFlags; 36 allStreamFlags = EnumSet.allOf(StreamOpFlag.class); 37 for (StreamOpFlag f : EnumSet.allOf(StreamOpFlag.class)) 43 static EnumSet<StreamOpFlag> allStreamFlags() { in allStreamFlags()
|
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
D | FlagOpTest.java | 29 import java.util.EnumSet; 84 for (StreamOpFlag f : EnumSet.allOf(StreamOpFlag.class)) { in testFlagsClearAllSet() 90 EnumSet<StreamOpFlag> known = EnumSet.noneOf(StreamOpFlag.class); in testFlagsClearAllSet() 91 EnumSet<StreamOpFlag> notKnown = StreamOpFlagTestHelper.allStreamFlags(); in testFlagsClearAllSet() 99 EnumSet.noneOf(StreamOpFlag.class), in testFlagsClearAllSet() 107 EnumSet.noneOf(StreamOpFlag.class), in testFlagsClearAllSet() 120 EnumSet<StreamOpFlag> known = StreamOpFlagTestHelper.allStreamFlags(); in testFlagsSetAllClear() 122 for (StreamOpFlag f : EnumSet.allOf(StreamOpFlag.class)) { in testFlagsSetAllClear() 132 EnumSet<StreamOpFlag> notKnown = EnumSet.noneOf(StreamOpFlag.class); in testFlagsSetAllClear() 139 EnumSet.noneOf(StreamOpFlag.class), in testFlagsSetAllClear() [all …]
|
D | StreamFlagsTest.java | 52 …private void assertFlags(int value, EnumSet<StreamOpFlag> setFlags, EnumSet<StreamOpFlag> clearFla… in assertFlags() 68 EnumSet.of(ORDERED, SIZED), in testBaseStreams() 69 EnumSet.of(DISTINCT, SORTED, SHORT_CIRCUIT)); in testBaseStreams() 71 EnumSet.of(ORDERED, SIZED), in testBaseStreams() 72 EnumSet.of(DISTINCT, SORTED, SHORT_CIRCUIT)); in testBaseStreams() 74 EnumSet.of(SIZED, DISTINCT), in testBaseStreams() 75 EnumSet.of(ORDERED, SORTED, SHORT_CIRCUIT)); in testBaseStreams() 77 EnumSet.of(ORDERED, SIZED, DISTINCT, SORTED), in testBaseStreams() 78 EnumSet.of(SHORT_CIRCUIT)); in testBaseStreams() 80 EnumSet.of(ORDERED, DISTINCT, SIZED), in testBaseStreams() [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | EnumSet.java | 32 public abstract class EnumSet<E extends java.lang.Enum<E>> extends java.util.AbstractSet<E> class 35 EnumSet(java.lang.Class<E> elementType, java.lang.Enum<?>[] universe) { in EnumSet() method in EnumSet 39 public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> noneOf( in noneOf() 44 public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> allOf( in allOf() 51 public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> copyOf( in copyOf() 52 java.util.EnumSet<E> s) { in copyOf() 56 public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> copyOf( in copyOf() 61 public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> complementOf( in complementOf() 62 java.util.EnumSet<E> s) { in complementOf() 66 public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> of(E e) { in of() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | ClassCastExceptionTest.java | 22 import java.util.EnumSet; 60 EnumSet m = EnumSet.noneOf(E.class); in testMiniEnumSetAdd() 70 EnumSet m = EnumSet.noneOf(E.class); in testMiniEnumSetAddAll() 71 EnumSet n = EnumSet.allOf(F.class); in testMiniEnumSetAddAll() 92 EnumSet m = EnumSet.noneOf(HugeE.class); in testHugeEnumSetAdd() 102 EnumSet m = EnumSet.noneOf(HugeE.class); in testHugeEnumSetAddAll() 103 EnumSet n = EnumSet.allOf(HugeF.class); in testHugeEnumSetAddAll()
|
D | EnumTest.java | 22 import java.util.EnumSet; 62 public static final EnumSet<EnumA> mySet; 75 mySet = EnumSet.noneOf(EnumA.class); 100 System.out.println(EnumSet.noneOf(ComplicatedEnum.class)); in testDeadlock()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | StackWalker.java | 30 import java.util.EnumSet; 295 static final EnumSet<Option> DEFAULT_EMPTY_OPTION = EnumSet.noneOf(Option.class); 340 return getInstance(EnumSet.of(Objects.requireNonNull(option))); in getInstance() 368 EnumSet<Option> optionSet = toEnumSet(options); in getInstance() 404 EnumSet<Option> optionSet = toEnumSet(options); in getInstance() 410 private StackWalker(EnumSet<Option> options) { in StackWalker() 413 private StackWalker(EnumSet<Option> options, int estimateDepth) { in StackWalker() 416 private StackWalker(EnumSet<Option> options, int estimateDepth, ExtendedOption extendedOption) { in StackWalker() 437 private static EnumSet<Option> toEnumSet(Set<Option> options) { in toEnumSet() 442 return EnumSet.copyOf(options); in toEnumSet() [all …]
|
D | LiveStackFrame.java | 28 import java.util.EnumSet; 159 return getStackWalker(EnumSet.noneOf(StackWalker.Option.class)); in getStackWalker()
|
/libcore/ojluni/src/test/java/awt/font/NumericShaper/ |
D | ShapingTest.java | 34 import java.util.EnumSet; 58 NumericShaper ns_new = getContextualShaper(EnumSet.of( in test6842557() 103 ns = getContextualShaper(EnumSet.of(Range.ARABIC)); in test6943963() 109 ns = getContextualShaper(EnumSet.of(Range.EASTERN_ARABIC)); in test6943963() 115 ns = getContextualShaper(EnumSet.of(Range.ARABIC, Range.EASTERN_ARABIC)); in test6943963() 120 NumericShaper ns = getContextualShaper(EnumSet.of(Range.TAI_THAM_HORA)); in test6903266() 125 ns = getContextualShaper(EnumSet.of(Range.TAI_THAM_HORA, in test6903266() 131 ns = getContextualShaper(EnumSet.of(Range.JAVANESE)); in test6903266() 136 ns = getContextualShaper(EnumSet.of(Range.TAI_THAM_THAM)); in test6903266() 141 ns = getContextualShaper(EnumSet.of(Range.MEETEI_MAYEK)); in test6903266()
|
D | EqualsTest.java | 35 import java.util.EnumSet; 46 EnumSet.of(Range.ARABIC, Range.TAMIL), in main() 49 EnumSet.of(Range.ARABIC, Range.TAMIL), in main() 52 EnumSet.of(Range.ARABIC, Range.TAMIL), in main()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | EnumSetTest.java | 20 import java.util.EnumSet; 36 EnumSet<Roshambo> set = EnumSet.of(Roshambo.ROCK, Roshambo.SCISSORS); in testSmallEnumSetSerialization() 37 new SerializationTester<EnumSet<Roshambo>>(set, s).test(); in testSmallEnumSetSerialization() 51 EnumSet<Element> set = EnumSet.of(Element.H, Element.TB, Element.DY, Element.UUO); in testLargeEnumSetSerialization() 52 new SerializationTester<EnumSet<Element>>(set, s).test(); in testLargeEnumSetSerialization() 93 assertEquals(EnumSet.of(Roshambo.ROCK, Roshambo.SCISSORS), in testDeserializeShuffledOrdinals()
|
/libcore/ojluni/src/test/java/util/EnumSet/ |
D | InsertWrongType.java | 30 package test.java.util.EnumSet; 92 EnumSet set = EnumSet.noneOf(enumClass); in addIllTypedElt() 100 EnumSet set = EnumSet.noneOf(enumClass); in addAllIllTypedElt() 108 EnumSet dest = EnumSet.noneOf(destClass); in addAllEmptyMistypedEnumSet() 109 EnumSet src = EnumSet.noneOf(srcClass); in addAllEmptyMistypedEnumSet() 118 EnumSet.copyOf(list); in heterogeneousCopyOf() 125 EnumSet.of(e1, e2); in heterogeneousOf2() 132 EnumSet.of(e1, e1, e2); in heterogeneousOf3() 139 EnumSet.of(e1, e1, e1, e2); in heterogeneousOf4() 146 EnumSet.of(e1, e1, e1, e1, e2); in heterogeneousOf5() [all …]
|
D | SmallEnumIteratorRemoveResilience.java | 34 package test.java.util.EnumSet; 36 import java.util.EnumSet; 49 final Set<SmallEnum> set = EnumSet.noneOf(SmallEnum.class); in testSmallEnumRemoveResilience()
|
D | EnumSetBash.java | 33 package test.java.util.EnumSet; 61 Enum[] universe = EnumSet.allOf(enumClass).toArray(new Enum[0]); in bash() 65 EnumSet<T> s1 = EnumSet.noneOf(enumClass); in bash() 66 EnumSet<T> s2 = clone(s1, enumClass); in bash() 70 EnumSet<T> intersection = clone(s1, enumClass); in bash() 72 EnumSet<T> diff1 = clone(s1, enumClass); diff1.removeAll(s2); in bash() 73 EnumSet<T> diff2 = clone(s2, enumClass); diff2.removeAll(s1); in bash() 74 EnumSet<T> union = clone(s1, enumClass); union.addAll(s2); in bash() 108 static <E extends Enum<E>> EnumSet<E> clone(EnumSet<E> s, Class<E> cl) { in clone() 109 EnumSet<E> clone = null; in clone() [all …]
|
D | ComplementOf.java | 30 package test.java.util.EnumSet; 48 EnumSet<T> set = EnumSet.allOf(enumClass); in test() 49 EnumSet<T> setComplement = EnumSet.complementOf(set); in test()
|
D | LargeEnumIteratorRemoveResilience.java | 34 package test.java.util.EnumSet; 37 import java.util.EnumSet; 61 final Set<LargeEnum> set = EnumSet.noneOf(LargeEnum.class); in testLargeEnumIterator()
|
D | JumboRange.java | 30 package test.java.util.EnumSet; 47 EnumSet<T> range = EnumSet.range(e0, e1); in test()
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | EraTest.java | 37 import java.util.EnumSet; 49 EnumSet<ChronoField> unsupportedFields = EnumSet.complementOf(EnumSet.of(ERA)); in getLong_throws_forNonERA_chronoFields()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | Collector.java | 28 import java.util.EnumSet; 270 … : Collections.unmodifiableSet(EnumSet.of(Collector.Characteristics.IDENTITY_FINISH, in of() 303 cs = EnumSet.noneOf(Characteristics.class); in of()
|
/libcore/ojluni/src/test/java/lang/StackWalker/ |
D | VerifyStackTrace.java | 29 import java.util.EnumSet; 102 EnumSet.of(RETAIN_CLASS_REFERENCE, SHOW_REFLECT_FRAMES)); 149 EnumSet.of(RETAIN_CLASS_REFERENCE, SHOW_HIDDEN_FRAMES)); 201 EnumSet.allOf(StackWalker.Option.class));
|