Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 737 for enum (2.09 sec)

  1. 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
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 6.3K bytes
    - Viewed (0)
  2. 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 Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  3. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 5.4K bytes
    - Viewed (0)
  4. 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)
  5. docs_src/path_operation_configuration/tutorial002b.py

    from enum import Enum
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    class Tags(Enum):
        items = "items"
        users = "users"
    
    
    @app.get("/items/", tags=[Tags.items])
    async def get_items():
        return ["Portal gun", "Plumbus"]
    
    
    @app.get("/users/", tags=[Tags.users])
    async def read_users():
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Jan 23 17:43:04 GMT 2022
    - 323 bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

          }
        };
      }
    
      enum QueueImpl implements CollectionsImplEnum {
        MinMaxPriorityQueueImpl {
          @Override
          public <E extends Comparable<E>> Queue<E> create(Collection<E> contents) {
            return MinMaxPriorityQueue.create(contents);
          }
        };
      }
    
      enum TableImpl {
        HashBasedTableImpl {
          @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Mar 04 04:06:35 GMT 2022
    - 12.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

          }
        };
      }
    
      enum QueueImpl implements CollectionsImplEnum {
        MinMaxPriorityQueueImpl {
          @Override
          public <E extends Comparable<E>> Queue<E> create(Collection<E> contents) {
            return MinMaxPriorityQueue.create(contents);
          }
        };
      }
    
      enum TableImpl {
        HashBasedTableImpl {
          @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Mar 04 04:06:35 GMT 2022
    - 12.3K bytes
    - Viewed (0)
  8. cmd/setup-type.go

    package cmd
    
    // SetupType - enum for setup type.
    type SetupType int
    
    const (
    	// UnknownSetupType - starts with unknown setup type.
    	UnknownSetupType SetupType = iota
    
    	// FSSetupType - FS setup type enum.
    	FSSetupType
    
    	// ErasureSDSetupType - Erasure single drive setup enum.
    	ErasureSDSetupType
    
    	// ErasureSetupType - Erasure setup type enum.
    	ErasureSetupType
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Oct 25 00:44:15 GMT 2022
    - 1.5K bytes
    - Viewed (0)
  9. 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)
  10. src/main/java/jcifs/internal/smb1/net/NetServerEnum2.java

    public class NetServerEnum2 extends SmbComTransaction {
    
        /**
         * 
         */
        public static final int SV_TYPE_ALL = 0xFFFFFFFF;
    
        /**
         * 
         */
        public static final int SV_TYPE_DOMAIN_ENUM = 0x80000000;
    
        static final String[] DESCR = {
            "WrLehDO\u0000B16BBDz\u0000", "WrLehDz\u0000B16BBDz\u0000",
        };
    
        String domain, lastName = null;
        int serverTypes;
    
    
        /**
         * 
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 4K bytes
    - Viewed (0)
Back to top