/external/guava/guava/src/com/google/common/base/ |
D | Enums.java | 66 public static <T extends Enum<T>> Optional<T> getIfPresent(Class<T> enumClass, String value) { in getIfPresent() argument 67 checkNotNull(enumClass); in getIfPresent() 69 return Platform.getEnumIfPresent(enumClass, value); in getIfPresent() 78 Class<T> enumClass) { in populateCache() argument 80 for (T enumInstance : EnumSet.allOf(enumClass)) { in populateCache() 83 enumConstantCache.put(enumClass, result); in populateCache() 89 Class<T> enumClass) { in getEnumConstants() argument 91 Map<String, WeakReference<? extends Enum<?>>> constants = enumConstantCache.get(enumClass); in getEnumConstants() 93 constants = populateCache(enumClass); in getEnumConstants() 107 public static <T extends Enum<T>> Converter<String, T> stringConverter(final Class<T> enumClass) { in stringConverter() argument [all …]
|
D | Platform.java | 48 static <T extends Enum<T>> Optional<T> getEnumIfPresent(Class<T> enumClass, String value) { in getEnumIfPresent() argument 49 WeakReference<? extends Enum<?>> ref = Enums.getEnumConstants(enumClass).get(value); in getEnumIfPresent() 50 return ref == null ? Optional.<T>absent() : Optional.of(enumClass.cast(ref.get())); in getEnumIfPresent()
|
/external/guava/android/guava/src/com/google/common/base/ |
D | Enums.java | 66 public static <T extends Enum<T>> Optional<T> getIfPresent(Class<T> enumClass, String value) { in getIfPresent() argument 67 checkNotNull(enumClass); in getIfPresent() 69 return Platform.getEnumIfPresent(enumClass, value); in getIfPresent() 78 Class<T> enumClass) { in populateCache() argument 80 for (T enumInstance : EnumSet.allOf(enumClass)) { in populateCache() 83 enumConstantCache.put(enumClass, result); in populateCache() 89 Class<T> enumClass) { in getEnumConstants() argument 91 Map<String, WeakReference<? extends Enum<?>>> constants = enumConstantCache.get(enumClass); in getEnumConstants() 93 constants = populateCache(enumClass); in getEnumConstants() 107 public static <T extends Enum<T>> Converter<String, T> stringConverter(final Class<T> enumClass) { in stringConverter() argument [all …]
|
D | Platform.java | 48 static <T extends Enum<T>> Optional<T> getEnumIfPresent(Class<T> enumClass, String value) { in getEnumIfPresent() argument 49 WeakReference<? extends Enum<?>> ref = Enums.getEnumConstants(enumClass).get(value); in getEnumIfPresent() 50 return ref == null ? Optional.<T>absent() : Optional.of(enumClass.cast(ref.get())); in getEnumIfPresent()
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ |
D | ReflectionEnumConstantDeclaration.java | 31 Class<?> enumClass = enumConstant.getDeclaringClass(); in getType() local 32 …ResolvedReferenceTypeDeclaration typeDeclaration = new ReflectionEnumDeclaration(enumClass, typeSo… in getType()
|
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/ |
D | Platform.java | 43 static <T extends Enum<T>> Optional<T> getEnumIfPresent(Class<T> enumClass, String value) { in getEnumIfPresent() argument 45 return Optional.of(Enum.valueOf(enumClass, value)); in getEnumIfPresent()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/javaparsermodel/declarations/ |
D | JavaParserEnumDeclaration.java | 220 …ReferenceType enumClass = ReflectionFactory.typeUsageFor(Enum.class, typeSolver).asReferenceType(); in getAncestors() local 221 …TypeParameterDeclaration eTypeParameter = enumClass.getTypeDeclaration().getTypeParameters().get(0… in getAncestors() 222 …enumClass = enumClass.deriveTypeParameters(new TypeParametersMap.Builder().setValue(eTypeParameter… in getAncestors() 223 ancestors.add(enumClass); in getAncestors()
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/ |
D | JavaParserEnumDeclaration.java | 224 …ResolvedReferenceType enumClass = ReflectionFactory.typeUsageFor(Enum.class, typeSolver).asReferen… in getAncestors() local 225 …ResolvedTypeParameterDeclaration eTypeParameter = enumClass.getTypeDeclaration().getTypeParameters… in getAncestors() 226 …enumClass = enumClass.deriveTypeParameters(new ResolvedTypeParametersMap.Builder().setValue(eTypeP… in getAncestors() 227 ancestors.add(enumClass); in getAncestors()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/ |
D | com_github_javaparser_symbolsolver_javaparsermodel_declarations_JavaParserEnumDeclaration.txt | 45 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/ |
D | validator.js | 183 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/ |
D | CycleDetectingLockFactory.java | 276 Class<E> enumClass, Policy policy) { in newInstanceWithExplicitOrdering() argument 279 checkNotNull(enumClass); in newInstanceWithExplicitOrdering() 282 Map<E, LockGraphNode> lockGraphNodes = (Map<E, LockGraphNode>) getOrCreateNodes(enumClass); in newInstanceWithExplicitOrdering()
|
/external/guava/android/guava/src/com/google/common/util/concurrent/ |
D | CycleDetectingLockFactory.java | 276 Class<E> enumClass, Policy policy) { in newInstanceWithExplicitOrdering() argument 279 checkNotNull(enumClass); in newInstanceWithExplicitOrdering() 282 Map<E, LockGraphNode> lockGraphNodes = (Map<E, LockGraphNode>) getOrCreateNodes(enumClass); in newInstanceWithExplicitOrdering()
|
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/ |
D | CycleDetectingLockFactoryTest.java | 90 Class<E> enumClass, Policy policy) { in newInstanceWithExplicitOrdering() argument 92 policy, CycleDetectingLockFactory.createNodes(enumClass)); in newInstanceWithExplicitOrdering()
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | CycleDetectingLockFactoryTest.java | 90 Class<E> enumClass, Policy policy) { in newInstanceWithExplicitOrdering() argument 92 policy, CycleDetectingLockFactory.createNodes(enumClass)); in newInstanceWithExplicitOrdering()
|
/external/dokka/core/src/test/kotlin/format/ |
D | MarkdownFormatTest.kt | 46 @Test fun enumClass() { in <lambda>() method in org.jetbrains.dokka.tests.MarkdownFormatTest
|
/external/skqp/tools/bookmaker/ |
D | includeWriter.cpp | 340 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/ |
D | peerconnection_jni.cc | 1378 jclass enumClass = FindClass(jni, className.c_str()); in GetJavaEnumName() local 1380 GetMethodID(jni, enumClass, "name", "()Ljava/lang/String;"); in GetJavaEnumName()
|