Home
last modified time | relevance | path

Searched refs:enumClass (Results 1 – 12 of 12) 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/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/
DJavaParserEnumDeclaration.java213 …ResolvedReferenceType enumClass = ReflectionFactory.typeUsageFor(Enum.class, typeSolver).asReferen… in getAncestors() local
214 …ResolvedTypeParameterDeclaration eTypeParameter = enumClass.getTypeDeclaration().getTypeParameters… in getAncestors()
215enumClass = enumClass.deriveTypeParameters(new ResolvedTypeParametersMap.Builder().setValue(eTypeP… in getAncestors()
216 ancestors.add(enumClass); in getAncestors()
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/
Dcom_github_javaparser_symbolsolver_javaparsermodel_declarations_JavaParserEnumDeclaration.txt45 Line 221) enumClass.getTypeDeclaration().getTypeParameters().get(0) ==> java.util.List.get(int)
46 …Line 221) enumClass.getTypeDeclaration().getTypeParameters() ==> com.github.javaparser.symbolsolve…
47 …Line 221) enumClass.getTypeDeclaration() ==> com.github.javaparser.symbolsolver.model.typesystem.R…
48 …Line 222) enumClass.deriveTypeParameters(new TypeParametersMap.Builder().setValue(eTypeParameter, …
51 Line 223) ancestors.add(enumClass) ==> java.util.List.add(E)
/external/libchrome/mojo/public/js/lib/
Dvalidator.js183 Validator.prototype.validateEnum = function(offset, enumClass) { argument
187 return enumClass.validate(value);
660 function(offset, numElements, enumClass) { argument
664 var err = this.validateEnum(elementOffset, enumClass);
/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/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/skqp/tools/bookmaker/
DincludeWriter.cpp340 bool enumClass = enumClassCheck.skipExact("class "); in enumHeaderOut() local
341 if (enumClass) { in enumHeaderOut()
347 if (enumClass) { in enumHeaderOut()
/external/skia/tools/bookmaker/
DincludeWriter.cpp340 bool enumClass = enumClassCheck.skipExact("class "); in enumHeaderOut() local
341 if (enumClass) { in enumHeaderOut()
347 if (enumClass) { in enumHeaderOut()
/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()