/libcore/ojluni/src/main/java/java/util/ |
D | EnumSet.java | 79 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 …]
|
D | JumboEnumSet.java | 36 class JumboEnumSet<E extends Enum<E>> extends EnumSet<E> { 374 public EnumSet<E> clone() { in clone()
|
/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()
|
D | OpTestCase.java | 32 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/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()
|
D | OpTestCase.java | 32 import java.util.EnumSet; 58 …testScenarios.put(StreamShape.REFERENCE, Collections.unmodifiableSet(EnumSet.allOf(StreamTestScena… in OpTestCase() 59 …testScenarios.put(StreamShape.INT_VALUE, Collections.unmodifiableSet(EnumSet.allOf(IntStreamTestSc… in OpTestCase() 60 …testScenarios.put(StreamShape.LONG_VALUE, Collections.unmodifiableSet(EnumSet.allOf(LongStreamTest… in OpTestCase() 61 …testScenarios.put(StreamShape.DOUBLE_VALUE, Collections.unmodifiableSet(EnumSet.allOf(DoubleStream… in OpTestCase() 549 EnumSet<TerminalTestScenario> tests = EnumSet.allOf(TerminalTestScenario.class); in exercise()
|
/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/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/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/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()
|
D | Collectors.java | 35 import java.util.EnumSet; 107 = Collections.unmodifiableSet(EnumSet.of(Collector.Characteristics.CONCURRENT, 111 = Collections.unmodifiableSet(EnumSet.of(Collector.Characteristics.CONCURRENT, 114 = Collections.unmodifiableSet(EnumSet.of(Collector.Characteristics.IDENTITY_FINISH)); 116 = Collections.unmodifiableSet(EnumSet.of(Collector.Characteristics.UNORDERED, 385 characteristics = EnumSet.copyOf(characteristics);
|
/libcore/ojluni/src/main/java/java/nio/file/attribute/ |
D | AclEntry.java | 186 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()
|
D | PosixFilePermissions.java | 129 Set<PosixFilePermission> result = EnumSet.noneOf(PosixFilePermission.class); in fromString()
|
/libcore/ojluni/src/main/java/java/nio/file/ |
D | TempFileHelper.java | 29 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/ |
D | OffsetTimeTest.java | 24 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/ |
D | AlgorithmChecker.java | 33 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/ |
D | DefaultFileSystemProvider2Test.java | 48 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/ |
D | BlockGuardTest.java | 29 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/ |
D | NumericShaper.java | 32 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()
|