- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 1,192 for enum2 (0.04 sec)
-
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; } /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 9.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/openapi/enablement.go
// remove the enum section from description. // note that the new lines before the header should be removed too, // thus the slice range. clone() schema.Description = strings.TrimSpace(schema.Description[:headerIndex]) } if len(schema.Enum) != 0 { // remove the enum field clone() schema.Enum = nil } return schema },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 06 17:24:29 UTC 2023 - 2.7K 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
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed Feb 28 23:54:53 UTC 2024 - 1.4K bytes - Viewed (0) -
analysis/analysis-api/testData/components/containingDeclarationProvider/containingDeclarationByPsi/localDeclarations.kt
fun xFunction() = 11 typealias xTypealias = 10 class XClass<XT> {} enum class XEnum { X_ENUM_ENTRY; fun xEnumMember(){} } class Y <YT> { val yProperty = 10 fun yFunction() = 11 typealias yTypealias = 10 class YClass<YTT> {} enum class YEnum { Y_ENUM_ENTRY; fun yEnumMember(){} }
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed Oct 26 19:19:00 UTC 2022 - 509 bytes - Viewed (0) -
fastapi/types.py
import types from enum import Enum from typing import Any, Callable, Dict, Set, Type, TypeVar, Union from pydantic import BaseModel DecoratedCallable = TypeVar("DecoratedCallable", bound=Callable[..., Any]) UnionType = getattr(types, "UnionType", Union) ModelNameMap = Dict[Union[Type[BaseModel], Type[Enum]], str]
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Dec 12 00:29:03 UTC 2023 - 383 bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableEnumMap.java
@GwtCompatible(serializable = true, emulated = true) @SuppressWarnings("serial") // we're overriding default serialization @ElementTypesAreNonnullByDefault final class ImmutableEnumMap<K extends Enum<K>, V> extends IteratorBasedImmutableMap<K, V> { static <K extends Enum<K>, V> ImmutableMap<K, V> asImmutable(EnumMap<K, V> map) { switch (map.size()) { case 0: return ImmutableMap.of(); case 1:
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Mar 06 16:06:58 UTC 2023 - 3.7K bytes - Viewed (0) -
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) -
docs_src/path_params/tutorial005.py
from enum import Enum from fastapi import FastAPI class ModelName(str, Enum): alexnet = "alexnet" resnet = "resnet" lenet = "lenet" app = FastAPI() @app.get("/models/{model_name}") async def get_model(model_name: ModelName): if model_name is ModelName.alexnet: return {"model_name": model_name, "message": "Deep Learning FTW!"} if model_name.value == "lenet":
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Aug 26 13:26:03 UTC 2022 - 546 bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/deepcopy.go
if *in == nil { *out = nil } else { *out = new(float64) **out = **in } } if in.Enum != nil { out.Enum = make([]JSON, len(in.Enum)) for i := range in.Enum { out.Enum[i] = runtime.DeepCopyJSONValue(in.Enum[i]) } } if in.MaxProperties != nil { in, out := &in.MaxProperties, &out.MaxProperties if *in == nil { *out = nil } else {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 21 17:55:23 UTC 2023 - 6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/EnumBiMap.java
* * @author Mike Bostock * @since 2.0 */ @GwtCompatible(emulated = true) @J2ktIncompatible @ElementTypesAreNonnullByDefault public final class EnumBiMap<K extends Enum<K>, V extends Enum<V>> extends AbstractBiMap<K, V> { /* * J2CL's EnumMap does not need the Class instance, so we can use Object.class instead. (Or we
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Aug 24 01:40:03 UTC 2023 - 6.3K bytes - Viewed (0)