Home
last modified time | relevance | path

Searched refs:enumClass (Results 1 – 8 of 8) sorted by relevance

/external/guava/guava/src/com/google/common/base/
DEnums.java74 Class<T> enumClass, String value) { in getIfPresent() argument
75 checkNotNull(enumClass); in getIfPresent()
77 return Platform.getEnumIfPresent(enumClass, value); in getIfPresent()
87 Class<T> enumClass) { in populateCache() argument
90 for (T enumInstance : EnumSet.allOf(enumClass)) { in populateCache()
93 enumConstantCache.put(enumClass, result); in populateCache()
99 Class<T> enumClass) { in getEnumConstants() argument
102 enumConstantCache.get(enumClass); in getEnumConstants()
104 constants = populateCache(enumClass); in getEnumConstants()
118 public static <T extends Enum<T>> Converter<String, T> stringConverter(final Class<T> enumClass) { in stringConverter() argument
[all …]
DPlatform.java41 static <T extends Enum<T>> Optional<T> getEnumIfPresent(Class<T> enumClass, String value) { in getEnumIfPresent() argument
42 WeakReference<? extends Enum<?>> ref = Enums.getEnumConstants(enumClass).get(value); in getEnumIfPresent()
45 : Optional.of(enumClass.cast(ref.get())); in getEnumIfPresent()
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/
DEnums.java50 Class<T> enumClass, String value) { in getIfPresent() argument
51 checkNotNull(enumClass); in getIfPresent()
53 return Platform.getEnumIfPresent(enumClass, value); in getIfPresent()
64 public static <T extends Enum<T>> Converter<String, T> stringConverter(final Class<T> enumClass) { in stringConverter() argument
65 return new StringConverter<T>(enumClass); in stringConverter()
71 private final Class<T> enumClass; field in Enums.StringConverter
73 StringConverter(Class<T> enumClass) { in StringConverter() argument
74 this.enumClass = checkNotNull(enumClass); in StringConverter()
79 return Enum.valueOf(enumClass, value); in doForward()
91 return this.enumClass.equals(that.enumClass); in equals()
[all …]
DPlatform.java39 static <T extends Enum<T>> Optional<T> getEnumIfPresent(Class<T> enumClass, String value) { in getEnumIfPresent() argument
41 return Optional.of(Enum.valueOf(enumClass, value)); in getEnumIfPresent()
/external/guava/guava/src/com/google/common/util/concurrent/
DCycleDetectingLockFactory.java295 newInstanceWithExplicitOrdering(Class<E> enumClass, Policy policy) { in newInstanceWithExplicitOrdering() argument
298 checkNotNull(enumClass); in newInstanceWithExplicitOrdering()
302 (Map<E, LockGraphNode>) getOrCreateNodes(enumClass); in newInstanceWithExplicitOrdering()
/external/r8/src/main/java/com/android/tools/r8/ir/optimize/
DCodeRewriter.java396 DexClass enumClass = appInfo.definitionFor(ordinalMethod.holder); in removeSwitchMaps() local
397 if (enumClass == null in removeSwitchMaps()
398 || (!enumClass.accessFlags.isEnum() && enumClass.type != dexItemFactory.enumType) in removeSwitchMaps()
550 private Reference2IntMap<DexField> extractOrdinalsMapFor(DexType enumClass) { in extractOrdinalsMapFor() argument
551 DexClass clazz = appInfo.definitionFor(enumClass); in extractOrdinalsMapFor()
570 if (staticPut.getField().type != enumClass) { in extractOrdinalsMapFor()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DCycleDetectingLockFactoryTest.java95 newInstanceWithExplicitOrdering(Class<E> enumClass, Policy policy) { in newInstanceWithExplicitOrdering() argument
97 policy, CycleDetectingLockFactory.createNodes(enumClass)); in newInstanceWithExplicitOrdering()
/external/webrtc/talk/app/webrtc/java/jni/
Dpeerconnection_jni.cc1378 jclass enumClass = FindClass(jni, className.c_str()); in GetJavaEnumName() local
1380 GetMethodID(jni, enumClass, "name", "()Ljava/lang/String;"); in GetJavaEnumName()