/libcore/ojluni/src/main/java/java/util/ |
D | EnumSet.java | 79 public abstract class EnumSet<E extends Enum<E>> extends AbstractSet<E> 90 final Enum<?>[] universe; 92 private static Enum<?>[] ZERO_LENGTH_ENUM_ARRAY = new Enum<?>[0]; 94 EnumSet(Class<E>elementType, Enum<?>[] universe) { in EnumSet() 108 public static <E extends Enum<E>> EnumSet<E> noneOf(Class<E> elementType) { in noneOf() 109 Enum<?>[] universe = getUniverse(elementType); in noneOf() 129 public static <E extends Enum<E>> EnumSet<E> allOf(Class<E> 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() 193 public static <E extends Enum<E>> EnumSet<E> complementOf(EnumSet<E> s) { in complementOf() [all …]
|
D | RegularEnumSet.java | 36 class RegularEnumSet<E extends Enum<E>> extends EnumSet<E> { 44 RegularEnumSet(Class<E>elementType, Enum<?>[] universe) { in RegularEnumSet() 78 private class EnumSetIterator<E extends Enum<E>> implements Iterator<E> { 147 return (elements & (1L << ((Enum<?>)e).ordinal())) != 0; in contains() 164 elements |= (1L << ((Enum<?>)e).ordinal()); in add() 182 elements &= ~(1L << ((Enum<?>)e).ordinal()); in remove()
|
D | JumboEnumSet.java | 36 class JumboEnumSet<E extends Enum<E>> extends EnumSet<E> { 49 JumboEnumSet(Class<E>elementType, Enum<?>[] universe) { in JumboEnumSet() 97 private class EnumSetIterator<E extends Enum<E>> implements Iterator<E> { 187 int eOrdinal = ((Enum<?>)e).ordinal(); in contains() 227 int eOrdinal = ((Enum<?>)e).ordinal(); in remove()
|
D | EnumMap.java | 79 public class EnumMap<K extends Enum<K>, V> extends AbstractMap<K, V> 128 private static final Enum<?>[] ZERO_LENGTH_ENUM_ARRAY = new Enum<?>[0]; 222 return isValidKey(key) && vals[((Enum<?>)key).ordinal()] != null; in containsKey() 227 maskNull(value).equals(vals[((Enum<?>)key).ordinal()]); in containsMapping() 247 unmaskNull(vals[((Enum<?>)key).ordinal()]) : null); in get() 289 int index = ((Enum<?>)key).ordinal(); in remove() 300 int index = ((Enum<?>)key).ordinal(); in removeMapping() 752 private static <K extends Enum<K>> K[] getKeyUniverse(Class<K> keyType) { in getKeyUniverse()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Enum.java | 61 public abstract class Enum<E extends Enum<E>> class 123 protected Enum(String name, int ordinal) { in Enum() method in Enum 182 Enum<?> other = (Enum<?>)o; in compareTo() 183 Enum<E> self = this; in compareTo() 206 return (zuper == Enum.class) ? (Class<E>)clazz : (Class<E>)zuper; in getDeclaringClass() 239 public static <T extends Enum<T>> T valueOf(Class<T> enumType, in valueOf() 260 private static Object[] enumValues(Class<? extends Enum> clazz) { in enumValues() 274 private static final BasicLruCache<Class<? extends Enum>, Object[]> sharedConstantsCache 275 = new BasicLruCache<Class<? extends Enum>, Object[]>(64) { 276 @Override protected Object[] create(Class<? extends Enum> enumType) { [all …]
|
D | EnumConstantNotPresentException.java | 46 private Class<? extends Enum> enumType; 60 public EnumConstantNotPresentException(Class<? extends Enum> enumType, in EnumConstantNotPresentException() 72 public Class<? extends Enum> enumType() { return enumType; } in enumType()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | Enum.java | 32 public abstract class Enum<E extends java.lang.Enum<E>> class 35 protected Enum(java.lang.String name, int ordinal) { in Enum() method in Enum 71 public static <T extends java.lang.Enum<T>> T valueOf( in valueOf() 76 private static java.lang.Object[] enumValues(java.lang.Class<? extends java.lang.Enum> clazz) { in enumValues() 81 public static <T extends java.lang.Enum<T>> T[] getSharedConstants( in getSharedConstants() 114 java.lang.Class<? extends java.lang.Enum>, java.lang.Object[]>
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | Enum.annotated.java | 32 public abstract class Enum<E extends java.lang.Enum<E>> implements java.lang.Comparable<E>, java.io… class 34 protected Enum(@libcore.util.NonNull java.lang.String name, int ordinal) { throw new RuntimeExcepti… in Enum() method in Enum 52 @libcore.util.NonNull public static <T extends java.lang.Enum<T>> T valueOf(@libcore.util.NonNull j… in valueOf()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | EnumTest.java | 142 Sample s = Enum.valueOf(Sample.class, "CURLY"); in test_valueOfLjava_lang_String() 144 s = Enum.valueOf(Sample.class, "LARRY"); in test_valueOfLjava_lang_String() 146 s = Enum.valueOf(Sample.class, "MOE"); in test_valueOfLjava_lang_String() 149 Enum.valueOf(Bogus.class, "MOE"); in test_valueOfLjava_lang_String() 155 Enum.valueOf((Class<Sample>) null, "a string"); in test_valueOfLjava_lang_String() 163 Enum.valueOf(Sample.class, null); in test_valueOfLjava_lang_String() 171 Enum.valueOf((Class<Sample>) null, (String) null); in test_valueOfLjava_lang_String()
|
/libcore/luni/src/test/java/libcore/build/ |
D | DuplicateBridgeMethodsTest.java | 19 import java.lang.Enum; 53 method.getDeclaringClass(), java.lang.Enum.class); in testSubclassHasNoBridgeMethod()
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | EnumMap.java | 32 public class EnumMap<K extends java.lang.Enum<K>, V> extends java.util.AbstractMap<K, V> 135 private static <K extends java.lang.Enum<K>> K[] getKeyUniverse(java.lang.Class<K> keyType) { in getKeyUniverse() 154 private static final java.lang.Enum<?>[] ZERO_LENGTH_ENUM_ARRAY; 157 ZERO_LENGTH_ENUM_ARRAY = new java.lang.Enum[0];
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | EnumMapTest.java | 697 Enum enumKey = (Enum) iter.next(); in test_keySet() 699 enumKey = (Enum) iter.next(); in test_keySet() 716 enumKey = (Enum) iter.next(); in test_keySet() 732 enumKey = (Enum) iter.next(); in test_keySet() 747 enumKey = (Enum) iter.next(); in test_keySet()
|
D | EnumSetTest.java | 83 EnumSet.noneOf(Enum.class); in test_NoneOf_LClass() 173 EnumSet.allOf(Enum.class); in test_AllOf_LClass() 333 Enum[] elements = EmptyEnum.class.getEnumConstants(); in test_addAll_LCollection() 480 Enum[] elements = EnumFoo.class.getEnumConstants(); in test_remove_LOject() 524 Enum[] elements = EnumFoo.class.getEnumConstants(); in test_equals_LObject() 706 Enum[] elements = EnumFoo.class.getEnumConstants(); in test_contains_LObject() 767 result = hugeSet.contains(Enum.class); in test_contains_LObject() 778 Enum[] elements = EnumFoo.class.getEnumConstants(); in test_containsAll_LCollection()
|
/libcore/ojluni/annotations/hiddenapi/java/io/ |
D | ObjectOutputStream.java | 232 private void writeEnum(java.lang.Enum<?> en, java.io.ObjectStreamClass desc, boolean unshared) in writeEnum()
|
D | ObjectInputStream.java | 237 private java.lang.Enum<?> readEnum(boolean unshared) throws java.io.IOException { in readEnum()
|
/libcore/ojluni/src/main/java/java/io/ |
D | ObjectStreamClass.java | 471 isEnum = Enum.class.isAssignableFrom(cl); in ObjectStreamClass()
|
/libcore/ |
D | openjdk_java_files.bp | 138 "ojluni/src/main/java/java/lang/Enum.java",
|