Home
last modified time | relevance | path

Searched refs:EnumSet (Results 1 – 25 of 44) sorted by relevance

12

/libcore/ojluni/src/main/java/java/util/
DEnumSet.java79 public abstract class EnumSet<E extends Enum<E>> extends AbstractSet<E> class
94 EnumSet(Class<E>elementType, Enum<?>[] universe) { in EnumSet() method in EnumSet
108 public static <E extends Enum<E>> EnumSet<E> noneOf(Class<E> elementType) { in noneOf()
129 public static <E extends Enum<E>> EnumSet<E> allOf(Class<E> elementType) { in allOf()
130 EnumSet<E> result = noneOf(elementType); in allOf()
150 public static <E extends Enum<E>> EnumSet<E> copyOf(EnumSet<E> s) { in copyOf()
168 public static <E extends Enum<E>> EnumSet<E> copyOf(Collection<E> c) { in copyOf()
169 if (c instanceof EnumSet) { in copyOf()
170 return ((EnumSet<E>)c).clone(); in copyOf()
176 EnumSet<E> result = EnumSet.of(first); in copyOf()
[all …]
DJumboEnumSet.java36 class JumboEnumSet<E extends Enum<E>> extends EnumSet<E> {
374 public EnumSet<E> clone() { in clone()
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DTestFlagExpectedOp.java27 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 …]
DStreamOpFlagTestHelper.java25 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/
DTestFlagExpectedOp.java27 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 …]
DStreamOpFlagTestHelper.java25 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()
DOpTestCase.java32 import java.util.EnumSet;
59 …testScenarios.put(StreamShape.REFERENCE, Collections.unmodifiableSet(EnumSet.allOf(StreamTestScena… in OpTestCase()
60 …testScenarios.put(StreamShape.INT_VALUE, Collections.unmodifiableSet(EnumSet.allOf(IntStreamTestSc… in OpTestCase()
61 …testScenarios.put(StreamShape.LONG_VALUE, Collections.unmodifiableSet(EnumSet.allOf(LongStreamTest… in OpTestCase()
62 …testScenarios.put(StreamShape.DOUBLE_VALUE, Collections.unmodifiableSet(EnumSet.allOf(DoubleStream… in OpTestCase()
550 EnumSet<TerminalTestScenario> tests = EnumSet.allOf(TerminalTestScenario.class); in exercise()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DEnumSetTest.java22 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/test/java/util/stream/boottest/java/util/stream/
DFlagOpTest.java29 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 …]
DStreamFlagsTest.java52 …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/src/test/java/awt/font/NumericShaper/
DShapingTest.java34 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()
DEqualsTest.java35 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()
DMTTest.java35 import java.util.EnumSet;
54 ns1 = getContextualShaper(EnumSet.of(Range.EASTERN_ARABIC, Range.THAI), in main()
56 ns2 = getContextualShaper(EnumSet.of(Range.ARABIC, Range.THAI), in main()
DEasternArabicTest.java33 import java.util.EnumSet;
64 ns_new = getContextualShaper(EnumSet.of(Range.THAI, in main()
/libcore/luni/src/test/java/libcore/java/lang/
DEnumTest.java22 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/luni/src/test/java/libcore/java/time/chrono/
DEraTest.java37 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/
DCollector.java28 import java.util.EnumSet;
270 … : Collections.unmodifiableSet(EnumSet.of(Collector.Characteristics.IDENTITY_FINISH, in of()
303 cs = EnumSet.noneOf(Characteristics.class); in of()
/libcore/luni/src/test/java/libcore/java/awt/font/
DNumericShaperTest.java27 import java.util.EnumSet;
61 assertEquals(EnumSet.of(Range.ARABIC, Range.DEVANAGARI), ns.getRangeSet()); in testGetRangeSet()
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DAclEntry.java186 perms = EnumSet.copyOf(perms); in setPermissions()
203 Set<AclEntryPermission> set = EnumSet.noneOf(AclEntryPermission.class); in setPermissions()
231 flags = EnumSet.copyOf(flags); in setFlags()
248 Set<AclEntryFlag> set = EnumSet.noneOf(AclEntryFlag.class); in setFlags()
/libcore/ojluni/src/main/java/java/nio/file/
DTempFileHelper.java29 import java.util.EnumSet;
70 PosixFilePermissions.asFileAttribute(EnumSet.of(OWNER_READ, OWNER_WRITE));
72 PosixFilePermissions.asFileAttribute(EnumSet
/libcore/luni/src/test/java/libcore/java/time/
DOffsetTimeTest.java24 import java.util.EnumSet;
76 for (ChronoUnit unit : EnumSet.range(ChronoUnit.DAYS, ChronoUnit.FOREVER)) { in test_plus_minus_invalidUnits()
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DAlgorithmChecker.java33 import java.util.EnumSet;
80 Collections.unmodifiableSet(EnumSet.of(CryptoPrimitive.SIGNATURE));
83 Collections.unmodifiableSet(EnumSet.of(
224 primitives = EnumSet.noneOf(CryptoPrimitive.class); in check()
/libcore/luni/src/test/java/libcore/java/nio/file/
DDefaultFileSystemProvider2Test.java48 import java.util.EnumSet;
515 new Object[] { EnumSet.noneOf(StandardOpenOption.class) }, in parameters_test_newFileChannel_NoSuchFileException()
516 new Object[] { EnumSet.of(READ) }, in parameters_test_newFileChannel_NoSuchFileException()
517 new Object[] { EnumSet.of(WRITE) }, in parameters_test_newFileChannel_NoSuchFileException()
518 new Object[] { EnumSet.of(TRUNCATE_EXISTING) }, in parameters_test_newFileChannel_NoSuchFileException()
519 new Object[] { EnumSet.of(APPEND) }, in parameters_test_newFileChannel_NoSuchFileException()
520 new Object[] { EnumSet.of(CREATE, READ) }, in parameters_test_newFileChannel_NoSuchFileException()
521 new Object[] { EnumSet.of(CREATE, TRUNCATE_EXISTING) }, in parameters_test_newFileChannel_NoSuchFileException()
522 new Object[] { EnumSet.of(CREATE, READ) }, in parameters_test_newFileChannel_NoSuchFileException()
/libcore/luni/src/test/java/libcore/dalvik/system/
DBlockGuardTest.java29 import java.util.EnumSet;
42 recorder.setChecks(EnumSet.allOf(RecordingPolicy.Check.class)); in setUp()
193 recorder.setChecks(EnumSet.of(RecordingPolicy.Check.UNBUFFERED_IO)); in testUnbufferedIO()
320 public void setChecks(EnumSet<Check> checksList) { in setChecks()
/libcore/ojluni/src/main/java/java/awt/font/
DNumericShaper.java32 import java.util.EnumSet;
335 Set<Range> set = EnumSet.noneOf(Range.class); in maskToRangeSet()
960 return new NumericShaper(singleRange, EnumSet.of(singleRange)); in getShaper()
1060 rangeSet = EnumSet.copyOf(ranges); // throws NPE if ranges is null. in NumericShaper()
1236 return EnumSet.copyOf(rangeSet); in getRangeSet()

12