- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for enumValues (0.39 sec)
-
platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/Combinators.kt
} fun <E : Enum<E>> Encoder.writeEnum(value: E) { writeSmallInt(value.ordinal) } inline fun <reified E : Enum<E>> Decoder.readEnum(): E = readSmallInt().let { ordinal -> enumValues<E>()[ordinal] } inline fun <reified T : Any> ReadContext.readClassOf(): Class<out T> = readClass().asSubclass(T::class.java) /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 27 12:59:39 UTC 2024 - 8.4K bytes - Viewed (0) -
platforms/core-runtime/build-option/src/main/java/org/gradle/internal/buildoption/EnumBuildOption.java
} private E getValue(String value) { E enumValue = null; if (value != null) { enumValue = tryGetValue(value); if (enumValue == null) { enumValue = tryGetValue(value.toLowerCase(Locale.ROOT)); } if (enumValue == null) { enumValue = tryGetValue(value.toUpperCase(Locale.ROOT)); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 13:09:39 UTC 2024 - 4K bytes - Viewed (0) -
pkg/queue/instance_test.go
wg.Done() return nil }) // Start the queue at the halfway point. if i == numValues/2 { go q.Run(stop) } } // wait for all task processed wg.Wait() if len(out) != numValues { t.Fatalf("expected output array length %d to equal %d", len(out), numValues) } for i := 0; i < numValues; i++ { if i != out[i] { t.Fatalf("expected out[%d] %v to equal %v", i, out[i], i) } } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jul 21 16:30:36 UTC 2023 - 3.4K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Enums.java
* Returns the {@link Field} in which {@code enumValue} is defined. For example, to get the {@code * Description} annotation on the {@code GOLF} constant of enum {@code Sport}, use {@code * Enums.getField(Sport.GOLF).getAnnotation(Description.class)}. * * @since 12.0 */ @GwtIncompatible // reflection public static Field getField(Enum<?> enumValue) { Class<?> clazz = enumValue.getDeclaringClass(); try {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 26 11:56:44 UTC 2023 - 5K bytes - Viewed (0) -
guava/src/com/google/common/base/Enums.java
* Returns the {@link Field} in which {@code enumValue} is defined. For example, to get the {@code * Description} annotation on the {@code GOLF} constant of enum {@code Sport}, use {@code * Enums.getField(Sport.GOLF).getAnnotation(Description.class)}. * * @since 12.0 */ @GwtIncompatible // reflection public static Field getField(Enum<?> enumValue) { Class<?> clazz = enumValue.getDeclaringClass(); try {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 26 11:56:44 UTC 2023 - 5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/mutation/typeprovider.go
} var _ types.Provider = (*TypeProvider)(nil) // EnumValue returns the numeric value of the given enum value name. // This TypeProvider does not have special handling for EnumValue and thus directly delegate // to its underlying type provider. func (p *TypeProvider) EnumValue(enumName string) ref.Val { return p.underlyingTypeProvider.EnumValue(enumName) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 15 21:02:36 UTC 2024 - 3.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/EnumValueSnapshot.java
} 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 public void appendToHasher(Hasher hasher) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 08 14:30:43 UTC 2024 - 2.6K bytes - Viewed (0) -
platforms/core-configuration/stdlib-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/stdlib/EnumCodec.kt
writeEnumValueOf(value::class.java.superclass, value) } } private fun WriteContext.writeEnumValueOf(enumClass: Class<out Any>, enumValue: Any) { writeClass(enumClass) writeSmallInt((enumValue as Enum<*>).ordinal)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 04 18:56:44 UTC 2024 - 1.9K bytes - Viewed (0) -
subprojects/diagnostics/src/integTest/resources/org/gradle/api/tasks/diagnostics/HelpTaskIntegrationTest/listsEnumAndBooleanCmdOptionValues/build.gradle
import org.gradle.api.tasks.options.Option allprojects{ task hello(type: CustomTask) } class CustomTask extends DefaultTask { @TaskAction void doSomething() { } @Option(option = "enumValue", description = "Configures an enum value in CustomTask.") public void setEnumValue(TestEnum value) { } @Option(option = "booleanValue", description = "Configures a boolean flag in CustomTask.")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 06 10:43:03 UTC 2023 - 517 bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/testdata/HEAD/apiextensions.k8s.io.v1beta1.CustomResourceDefinition.json
"minLength": 14, "pattern": "patternValue", "maxItems": 16, "minItems": 17, "uniqueItems": true, "multipleOf": 19.5, "enum": [ "enumValue" ], "maxProperties": 21, "minProperties": 22, "required": [ "requiredValue" ], "items": [ {} ], "allOf": [
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 19:06:46 UTC 2024 - 8.6K bytes - Viewed (0)