Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 722 for Enum (0.13 sec)

  1. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10InheritorsProvider.kt

            if (enumDescriptor.kind != ClassKind.ENUM_CLASS) {
                return emptyList()
            }
    
            val result = mutableListOf<KtEnumEntrySymbol>()
    
            for (entryDescriptor in enumDescriptor.unsubstitutedMemberScope.getContributedDescriptors()) {
                if (entryDescriptor is ClassDescriptor && entryDescriptor.kind == ClassKind.ENUM_ENTRY) {
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Wed Jun 22 07:31:36 GMT 2022
    - 2.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/EnumHashBiMap.java

    @J2ktIncompatible
    @ElementTypesAreNonnullByDefault
    public final class EnumHashBiMap<K extends Enum<K>, V extends @Nullable Object>
        extends AbstractBiMap<K, V> {
      transient Class<K> keyTypeOrObjectUnderJ2cl;
    
      /**
       * Returns a new, empty {@code EnumHashBiMap} using the specified key type.
       *
       * @param keyType the key type
       */
      public static <K extends Enum<K>, V extends @Nullable Object> EnumHashBiMap<K, V> create(
          Class<K> keyType) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 5.4K bytes
    - Viewed (0)
  3. 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)
  4. src/main/java/jcifs/internal/smb1/net/NetShareEnum.java

    
        /**
         * 
         * @param config
         */
        public NetShareEnum ( Configuration config ) {
            super(config, SMB_COM_TRANSACTION, NET_SHARE_ENUM);
            this.name = new String("\\PIPE\\LANMAN");
            this.maxParameterCount = 8;
    
            // maxDataCount = 4096; why was this set?
            this.maxSetupCount = (byte) 0x00;
            this.setupCount = 0;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 2.9K bytes
    - Viewed (0)
  5. 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]
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Dec 12 00:29:03 GMT 2023
    - 383 bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/Platform.java

      private Platform() {}
    
      static CharMatcher precomputeCharMatcher(CharMatcher matcher) {
        return matcher.precomputedInternal();
      }
    
      static <T extends Enum<T>> Optional<T> getEnumIfPresent(Class<T> enumClass, String value) {
        WeakReference<? extends Enum<?>> ref = Enums.getEnumConstants(enumClass).get(value);
        return ref == null ? Optional.<T>absent() : Optional.of(enumClass.cast(ref.get()));
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jun 26 17:58:45 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  7. src/main/config/eclipse/formatter/java.xml

    <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant" value="do not insert"/>
    <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation" value="0"/>
    <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations" value="do not insert"/>
    XML
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Sun Sep 17 06:39:42 GMT 2017
    - 30.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableEnumSet.java

     */
    @GwtCompatible(serializable = true, emulated = true)
    @SuppressWarnings("serial") // we're overriding default serialization
    @ElementTypesAreNonnullByDefault
    final class ImmutableEnumSet<E extends Enum<E>> extends ImmutableSet<E> {
      static <E extends Enum<E>> ImmutableSet<E> asImmutable(EnumSet<E> set) {
        switch (set.size()) {
          case 0:
            return ImmutableSet.of();
          case 1:
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  9. .teamcity/src/main/kotlin/common/Os.kt

     * limitations under the License.
     */
    
    package common
    
    enum class Arch(val suffix: String, val nameOnLinuxWindows: String, val nameOnMac: String) {
        AMD64("64bit", "amd64", "x86_64"),
        AARCH64("aarch64", "aarch64", "aarch64");
    
        fun asName() = name.lowercase().toCapitalized()
    }
    
    enum class Os(
        val agentRequirement: String,
        val androidHome: String,
        val jprofilerHome: String,
    Plain Text
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Sun Sep 24 06:56:47 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  10. 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":
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Aug 26 13:26:03 GMT 2022
    - 546 bytes
    - Viewed (0)
Back to top