- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 402 for enum (0.14 sec)
-
build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/PublicAPIRulesTest.groovy
sourceFile.text = apiElement == 'enum' ? """ /** * @since 11.38 */ public enum $TEST_INTERFACE_SIMPLE_NAME { field; void method() { } } """ : apiElement.startsWith('enum') ? """ public enum $TEST_INTERFACE_SIMPLE_NAME { /**
Groovy - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Fri Dec 01 20:12:19 GMT 2023 - 16K bytes - Viewed (0) -
fastapi/openapi/models.py
from enum import Enum from typing import Any, Callable, Dict, Iterable, List, Optional, Set, Type, Union from fastapi._compat import ( PYDANTIC_V2, CoreSchema, GetJsonSchemaHandler, JsonSchemaValue, _model_rebuild, with_info_plain_validator_function, ) from fastapi.logger import logger from pydantic import AnyUrl, BaseModel, Field from typing_extensions import Annotated, Literal, TypedDict
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 22:49:33 GMT 2024 - 15K bytes - Viewed (1) -
guava-tests/test/com/google/common/collect/EnumMultisetTest.java
} // Wrapper of EnumMultiset factory methods, because we need to skip create(Class). // create(Enum1.class) is equal to create(Enum2.class) but testEquals() expects otherwise. // For the same reason, we need to skip create(Iterable, Class). private static class EnumMultisetFactory { public static <E extends Enum<E>> EnumMultiset<E> create(Iterable<E> elements) { return EnumMultiset.create(elements); } }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Feb 26 16:35:21 GMT 2024 - 5.8K bytes - Viewed (0) -
docs/en/docs/tutorial/path-params.md
### Create an `Enum` class Import `Enum` and create a sub-class that inherits from `str` and from `Enum`. By inheriting from `str` the API docs will be able to know that the values must be of type `string` and will be able to render correctly.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.1K bytes - Viewed (0) -
api/maven-api-spi/src/main/java/org/apache/maven/api/spi/ExtensibleEnumProvider.java
import org.apache.maven.api.annotations.Nonnull; /** * An SPI interface to extend Maven with a new enum value. * * @param <T> The type of extensible enum to extend */ @Experimental @Consumer public interface ExtensibleEnumProvider<T extends ExtensibleEnum> extends SpiService { /** * Registers new values for the T extensible enum. * * @return a collection of T instances to register */ @Nonnull
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Wed Feb 28 23:54:53 GMT 2024 - 1.4K bytes - Viewed (0) -
manifests/charts/gateway/values.schema.json
"ipFamilies": { "items": { "type": "string", "enum": [ "IPv4", "IPv6" ] } }, "ipFamilyPolicy": { "type": "string", "enum": [ "", "SingleStack", "PreferDualStack",
Json - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Thu Jan 18 16:33:33 GMT 2024 - 6.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/EnumMultiset.java
this.enumConstants = type.getEnumConstants(); this.counts = new int[enumConstants.length]; } private boolean isActuallyE(@CheckForNull Object o) { if (o instanceof Enum) { Enum<?> e = (Enum<?>) o; int index = e.ordinal(); return index < enumConstants.length && enumConstants[index] == e; } return false; } /**
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 9K bytes - Viewed (0) -
manifests/charts/istiod-remote/templates/crd-all.gen.yaml
enum: - FAIL_CLOSE - FAIL_OPEN type: string imagePullPolicy: description: |- The pull behaviour to be applied when fetching Wasm module by either OCI image or `http/https`. Valid Options: IfNotPresent, Always enum: - UNSPECIFIED_POLICY
Others - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Mon Apr 22 20:20:47 GMT 2024 - 606.1K bytes - Viewed (0) -
tests/test_jsonable_encoder.py
def test_custom_enum_encoders(): def custom_enum_encoder(v: Enum): return v.value.lower() class MyEnum(Enum): ENUM_VAL_1 = "ENUM_VAL_1" instance = MyEnum.ENUM_VAL_1 encoded_instance = jsonable_encoder( instance, custom_encoder={MyEnum: custom_enum_encoder} ) assert encoded_instance == custom_enum_encoder(instance)
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 21:56:59 GMT 2024 - 9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/CollectCollectors.java
@IgnoreJRERequirement // see enclosing class (whose annotation Animal Sniffer ignores here...) private static final class EnumSetAccumulator<E extends Enum<E>> { @SuppressWarnings({"rawtypes", "unchecked"}) static final Collector<Enum<?>, ?, ImmutableSet<? extends Enum<?>>> TO_IMMUTABLE_ENUM_SET = (Collector) toImmutableEnumSetGeneric(); @CheckForNull private EnumSet<E> set; void add(E e) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:21:40 GMT 2024 - 17.2K bytes - Viewed (0)