/dalvik/tests/055-enum-performance/src/ |
Main.java | 54 * This is meant to ensure that the basic enum functionality 60 System.out.println(Enum.valueOf(c, "FOUR")); 61 System.out.println(Enum.valueOf(c, "ONE")); 62 System.out.println(Enum.valueOf(c, "FOURTEEN")); 63 System.out.println(Enum.valueOf(c, "NINE")); 64 System.out.println(Enum.valueOf(c, "FIVE")); 65 System.out.println(Enum.valueOf(c, "TWELVE")); 67 System.out.println(Enum.valueOf(c, "ZERO").getClass().getName()); 115 Enum.valueOf(c, "ZERO"); 116 Enum.valueOf(c, "ONE") [all...] |
/external/clang/test/SemaCXX/ |
short-enums.cpp | 5 enum E { VALUE_1 }; 10 template <E Enum> 11 struct B : A<B<Enum> > {};
|
cxx98-compat-pedantic.cpp | 16 enum Enum {
|
constant-expression.cpp | 12 enum Enum { eval = 1 }; 14 const Enum ceval = eval; 17 static const Enum seval = eval; 20 template <int itval, Enum etval> struct C { 21 enum E { 84 enum {
|
attr-deprecated.cpp | 196 enum __attribute__((deprecated)) A { 204 enum B { 215 enum __attribute__((deprecated)) Enum { 220 C<int>::Enum x; // expected-warning {{'Enum' is deprecated}} 225 enum Enum { 231 D<int>::Enum x;
|
cstyle-cast.cpp | 55 enum Enum { En1, En2 }; 56 enum Onom { On1, On2 }; 135 // Enum conversions 138 (void)(Enum)(1); 139 (void)(Enum)(1.0); 144 (void)(Enum)((int*)0); // expected-error {{C-style cast from 'int *' to 'Enum' is not allowed}} 167 enum test { testval = 1 };
|
cxx98-compat.cpp | 60 enum EnumFixed : int { // expected-warning {{enumeration types with a fixed underlying type are incompatible with C++98}} 63 enum class EnumScoped { // expected-warning {{scoped enumerations are incompatible with C++98}} 177 enum Enum { enum_val = 0 }; 179 friend enum ::Enum; // expected-warning {{befriending enumeration type 'enum ::Enum' is incompatible with C++98}} 256 int EnumNNS = Enum::enum_val; // expected-warning {{enumeration type in nested name specifier is incompatible with C++98}} 260 template void EnumNNSFn<Enum>(); // expected-note {{in instantiation} [all...] |
static-cast.cpp | 13 enum Enum { En1, En2 }; 14 enum Onom { On1, On2 }; 102 // Enum conversions 105 (void)static_cast<Enum>(1); 106 (void)static_cast<Enum>(1.0); 111 (void)static_cast<Enum>((int*)0); // expected-error {{static_cast from 'int *' to 'Enum' is not allowed}}
|
/libcore/luni/src/main/java/java/lang/ |
EnumConstantNotPresentException.java | 20 * Thrown if an {@code enum} constant does not exist for a particular name. 29 private final Class<? extends Enum> enumType; 35 * stack trace and a detail message based on the specified enum type and 39 * the enum type. 44 public EnumConstantNotPresentException(Class<? extends Enum> enumType, String constantName) { 45 super("enum constant " + enumType.getName() + "." + constantName + " is missing"); 51 * Gets the enum type for which the constant name is missing. 53 * @return the enum type for which a constant name has not been found. 56 public Class<? extends Enum> enumType() { 63 * @return the name of the constant that has not been found in the enum [all...] |
Enum.java | 30 public abstract class Enum<E extends Enum<E>> implements Serializable, Comparable<E> { 34 private static final BasicLruCache<Class<? extends Enum>, Object[]> sharedConstantsCache 35 = new BasicLruCache<Class<? extends Enum>, Object[]>(64) { 36 @Override protected Object[] create(Class<? extends Enum> enumType) { 54 * Constructor for constants of enum subtypes. 57 * the enum constant's declared name. 59 * the enum constant's ordinal, which corresponds to its position 60 * in the enum declaration, starting at zero. 62 protected Enum(String name, int ordinal) [all...] |
/external/clang/test/SemaTemplate/ |
enum-argument.cpp | 3 enum Enum { val = 1 }; 4 template <Enum v> struct C { 16 enum { 28 enum { e0 = 32 };
|
instantiate-enum.cpp | 5 enum { 16 enum Enum
|
/external/clang/test/CXX/class.access/ |
p6.cpp | 126 enum Enum { E0, E1, E2 }; // expected-note 4 {{declared private here}} 127 template <Enum> void foo(); 128 template <Enum> class bar; 131 template <A::Enum en> void A::foo() {} 132 template <A::Enum en> class A::bar {}; 134 template <A::Enum en> void foo() {} // expected-error {{'Enum' is a private member of 'test5::A'}} 135 template <A::Enum en> class bar {}; // expected-error {{'Enum' is a private member of 'test5::A'} [all...] |
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
EnumBiMap.java | 35 public final class EnumBiMap<K extends Enum<K>, V extends Enum<V>> 47 public static <K extends Enum<K>, V extends Enum<V>> EnumBiMap<K, V> 62 public static <K extends Enum<K>, V extends Enum<V>> EnumBiMap<K, V> 76 static <K extends Enum<K>> Class<K> inferKeyType(Map<K, ?> map) { 87 private static <V extends Enum<V>> Class<V> inferValueType(Map<?, V> map) {
|
EnumHashBiMap.java | 36 public final class EnumHashBiMap<K extends Enum<K>, V> 45 public static <K extends Enum<K>, V> EnumHashBiMap<K, V> 60 public static <K extends Enum<K>, V> EnumHashBiMap<K, V>
|
EnumMultiset.java | 31 public final class EnumMultiset<E extends Enum<E>> extends AbstractMapBasedMultiset<E> { 33 public static <E extends Enum<E>> EnumMultiset<E> create(Class<E> type) { 46 public static <E extends Enum<E>> EnumMultiset<E> create(Iterable<E> elements) {
|
/libcore/luni/src/main/java/java/util/ |
EnumSet.java | 23 public abstract class EnumSet<E extends Enum<E>> extends AbstractSet<E> 34 * Creates an empty enum set. The permitted elements are of type 39 * @return an empty enum set, with permitted elements of type {@code 42 * if the specified element type is not and enum type. 44 public static <E extends Enum<E>> EnumSet<E> noneOf(Class<E> elementType) { 46 throw new ClassCastException(elementType.getClass().getName() + " is not an Enum"); 48 E[] enums = Enum.getSharedConstants(elementType); 56 * Creates an enum set filled with all the enum elements of the specified 61 * @return an enum set with elements solely from the specified element type [all...] |
/external/guava/guava/src/com/google/common/collect/ |
EnumBiMap.java | 39 public final class EnumBiMap<K extends Enum<K>, V extends Enum<V>> 51 public static <K extends Enum<K>, V extends Enum<V>> EnumBiMap<K, V> 66 public static <K extends Enum<K>, V extends Enum<V>> EnumBiMap<K, V> 80 static <K extends Enum<K>> Class<K> inferKeyType(Map<K, ?> map) { 91 private static <V extends Enum<V>> Class<V> inferValueType(Map<?, V> map) {
|
EnumMultiset.java | 35 public final class EnumMultiset<E extends Enum<E>> extends AbstractMapBasedMultiset<E> { 37 public static <E extends Enum<E>> EnumMultiset<E> create(Class<E> type) { 50 public static <E extends Enum<E>> EnumMultiset<E> create(Iterable<E> elements) { 74 * @serialData the {@code Class<E>} for the enum type, the number of distinct
|
EnumHashBiMap.java | 41 public final class EnumHashBiMap<K extends Enum<K>, V> 50 public static <K extends Enum<K>, V> EnumHashBiMap<K, V> 65 public static <K extends Enum<K>, V> EnumHashBiMap<K, V>
|
/hardware/ti/wpan/tools/FM/FmRadioIf/src/java/com/ti/core/ |
JFmUtils.java | 20 import java.lang.Enum; 29 public static <V, E extends Enum<E> & IJFmEnum<V>> E getEnumConst(Class<E> enumType,
|
/external/guava/guava/src/com/google/common/base/ |
Enums.java | 29 * Utility methods for working with {@link Enum} instances. 42 * Returns a {@link Function} that maps an {@link Enum} name to the associated 43 * {@code Enum} constant. The {@code Function} will return {@code null} if the 44 * {@code Enum} constant does not exist. 46 * @param enumClass the {@link Class} of the {@code Enum} declaring the 49 public static <T extends Enum<T>> Function<String, T> valueOfFunction(Class<T> enumClass) { 54 * {@link Function} that maps an {@link Enum} name to the associated 57 private static final class ValueOfFunction<T extends Enum<T>> implements 69 return Enum.valueOf(enumClass, value);
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
EnumTest.java | 29 enum Sample { 37 enum Empty { 40 enum Bogus { 44 enum Color { 48 enum MockCloneEnum { 57 * @tests java.lang.Enum#compareTo(java.lang.Enum) 72 * @tests java.lang.Enum#equals(Object) 83 * @tests java.lang.Enum#getDeclaringClass() 90 * @tests java.lang.Enum#hashCode( [all...] |
/prebuilt/common/tools-common/ |
tools-common-prebuilt.jar | |
/external/guava/guava-gwt/src/com/google/common/collect/ |
ImmutableEnumSet_CustomFieldSerializer.java | 37 public static <E extends Enum<E>> ImmutableEnumSet<?> instantiate(
|