Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 136 for enum2 (0.04 sec)

  1. guava-tests/test/com/google/common/base/EnumsTest.java

        assertThat(Enums.getIfPresent(TestEnum.class, "POODLE")).hasValue(TestEnum.POODLE);
    
        assertThat(Enums.getIfPresent(TestEnum.class, "CHEETO")).isPresent();
        assertThat(Enums.getIfPresent(TestEnum.class, "HONDA")).isPresent();
        assertThat(Enums.getIfPresent(TestEnum.class, "POODLE")).isPresent();
    
        assertThat(Enums.getIfPresent(TestEnum.class, "CHEETO")).hasValue(TestEnum.CHEETO);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Platform.java

      }
    
      static <T extends Enum<T>> Optional<T> getEnumIfPresent(Class<T> enumClass, String value) {
        WeakReference<? extends Enum<?>> ref = Enums.getEnumConstants(enumClass).get(value);
        /*
         * We use `fromNullable` instead of `of` because `WeakReference.get()` has a nullable return
         * type.
         *
         * In practice, we are very unlikely to see `null`: The `WeakReference` to the enum constant
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 15 22:32:14 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Platform.java

      }
    
      static <T extends Enum<T>> Optional<T> getEnumIfPresent(Class<T> enumClass, String value) {
        WeakReference<? extends Enum<?>> ref = Enums.getEnumConstants(enumClass).get(value);
        /*
         * We use `fromNullable` instead of `of` because `WeakReference.get()` has a nullable return
         * type.
         *
         * In practice, we are very unlikely to see `null`: The `WeakReference` to the enum constant
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 15 22:32:14 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. docs/pt/docs/tutorial/path-params.md

    ### Criando uma classe `Enum`
    
    Importe `Enum` e crie uma sub-classe que herde de `str` e de `Enum`.
    
    Por herdar de `str` a documentaĆ§Ć£o da API vai ser capaz de saber que os valores devem ser do tipo `string` e assim ser capaz de mostrar eles corretamente.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/IsolatedEnumValueSnapshot.java

    import javax.annotation.Nullable;
    
    /**
     * Isolates an Enum value and is a snapshot for that value.
     */
    public class IsolatedEnumValueSnapshot extends EnumValueSnapshot implements Isolatable<Enum<?>> {
        private final Enum<?> value;
    
        public IsolatedEnumValueSnapshot(Enum<?> value) {
            super(value);
            this.value = value;
        }
    
        public Enum<?> getValue() {
            return value;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 14:30:43 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/kubeopenapi.go

    	ret.Pattern = v.Pattern
    	ret.MaxItems = v.MaxItems
    	ret.MinItems = v.MinItems
    	ret.UniqueItems = v.UniqueItems
    	ret.MultipleOf = v.MultipleOf
    	if v.Enum != nil {
    		ret.Enum = make([]interface{}, 0, len(v.Enum))
    		for i := range v.Enum {
    			ret.Enum = append(ret.Enum, v.Enum[i].Object)
    		}
    	}
    	ret.MaxProperties = v.MaxProperties
    	ret.MinProperties = v.MinProperties
    	ret.Required = v.Required
    	for i := range v.AllOf {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/util/openapi/enablement_test.go

    				if strings.Contains(prop.Description, "enum") {
    					enumAppeared = true
    					if !tc.shouldHaveEnum {
    						t.Errorf("enum appeared, description: %s", prop.Description)
    					}
    				}
    				if len(prop.Enum) != 0 {
    					enumAppeared = true
    					if !tc.shouldHaveEnum {
    						t.Errorf("enum appeared, enum: %v", prop.Enum)
    					}
    				}
    			}
    			if !enumAppeared && tc.shouldHaveEnum {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/EnumValueSnapshot.java

                return this;
            }
            return snapshotter.snapshot(value);
        }
    
        private boolean isEqualEnum(@Nullable Object value) {
            if (value instanceof Enum<?>) {
                Enum<?> enumValue = (Enum<?>) value;
                return enumValue.name().equals(name) && enumValue.getDeclaringClass().getName().equals(className);
            }
            return false;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 14:30:43 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  9. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/annotations/KtAnnotationValue.kt

    }
    
    public typealias KtKClassAnnotationValue = KaKClassAnnotationValue
    
    /**
     * Some enum entry (enum constant) used as annotation argument. E.g: `@A(Color.RED)`
     */
    public class KaEnumEntryAnnotationValue @KaAnalysisApiInternals constructor(
        /**
         * Fully qualified name of used enum entry.
         */
        callableId: CallableId?,
        sourcePsi: KtElement?,
        token: KaLifetimeToken
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. platforms/core-runtime/internal-instrumentation-api/src/main/java/org/gradle/internal/instrumentation/api/types/BytecodeInterceptorFilter.java

    import java.util.EnumSet;
    
    /**
     * Request for interceptors. Currently, we support filter just for interception types, but in the feature we could also filter per version etc.
     *
     * Implemented as a enum, so it's easier to generate bytecode.
     */
    public enum BytecodeInterceptorFilter {
        INSTRUMENTATION_ONLY(EnumSet.of(BytecodeInterceptorType.INSTRUMENTATION)),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:40 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top