Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,294 for enum2 (0.05 sec)

  1. tools/istio-iptables/pkg/constants/constants.go

    	ValidationErrorCode     = 126
    )
    
    // DNS ports
    const (
    	IstioAgentDNSListenerPort = "15053"
    )
    
    // type of iptables operation/command to run, as an enum
    // the implementation will choose the correct underlying binary,
    // so callers should just use these enums to indicate what they want to do.
    type IptablesCmd int
    
    const (
    	IPTables        IptablesCmd = iota
    	IPTablesSave    IptablesCmd = iota
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 01:42:30 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/base/EnumsBenchmark.java

      boolean getIfPresent(int repetitions) {
        boolean retVal = false;
        for (int i = 0; i < repetitions; ++i) {
          retVal &= Enums.getIfPresent(enumType, sampleData[i & 255]).isPresent();
        }
        return retVal;
      }
    
      private enum SmallEnum {
        X0,
        X1,
        X2
      }
    
      private enum MediumEnum {
        X0,
        X1,
        X2,
        X3,
        X4,
        X5,
        X6,
        X7,
        X8,
        X9,
        X10,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/MultimapBuilder.java

       *
       * @since 16.0
       */
      public static <K0 extends Enum<K0>> MultimapBuilderWithKeys<K0> enumKeys(Class<K0> keyClass) {
        checkNotNull(keyClass);
        return new MultimapBuilderWithKeys<K0>() {
          @SuppressWarnings("unchecked")
          @Override
          <K extends K0, V extends @Nullable Object> Map<K, Collection<V>> createMap() {
            // K must actually be K0, since enums are effectively final
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/MultimapBuilder.java

       *
       * @since 16.0
       */
      public static <K0 extends Enum<K0>> MultimapBuilderWithKeys<K0> enumKeys(Class<K0> keyClass) {
        checkNotNull(keyClass);
        return new MultimapBuilderWithKeys<K0>() {
          @SuppressWarnings("unchecked")
          @Override
          <K extends K0, V extends @Nullable Object> Map<K, Collection<V>> createMap() {
            // K must actually be K0, since enums are effectively final
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  5. subprojects/core-api/src/test/groovy/org/gradle/model/internal/core/ModelTypeTest.groovy

        }
    
        enum MyEnum {
            ONE, TWO
        }
    
        enum MyEnumWithClassBodies {
            ONE {
                int execute() { return 1 }
            },
            TWO {
                int execute() { return 2 }
            }
    
            abstract int execute()
        }
    
        def "represents enums"() {
            given:
            def enumType = MyEnum.class
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 11 21:42:04 UTC 2018
    - 22.3K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/path-operation-configuration.md

    <img src="/img/tutorial/path-operation-configuration/image01.png">
    
    ### Tags with Enums
    
    If you have a big application, you might end up accumulating **several tags**, and you would want to make sure you always use the **same tag** for related *path operations*.
    
    In these cases, it could make sense to store the tags in an `Enum`.
    
    **FastAPI** supports that the same way as with plain strings:
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 17 05:59:11 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  7. docs/ko/docs/tutorial/path-params.md

    ## 사전정의 값
    
    만약 *경로 매개변수*를 받는 *경로 작동*이 있지만, *경로 매개변수*로 가능한 값들을 미리 정의하고 싶다면 파이썬 표준 <abbr title="열거형(Enumeration)">`Enum`</abbr>을 사용할 수 있습니다.
    
    ### `Enum` 클래스 생성
    
    `Enum`을 임포트하고 `str`과 `Enum`을 상속하는 서브 클래스를 만듭니다.
    
    `str`을 상속함으로써 API 문서는 값이 `string` 형이어야 하는 것을 알게 되고 이는 문서에 제대로 표시됩니다.
    
    가능한 값들에 해당하는 고정된 값의 클래스 어트리뷰트들을 만듭니다:
    
    ```Python hl_lines="1  6-9"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/path-operation-configuration.md

    <img src="/img/tutorial/path-operation-configuration/image01.png">
    
    ### Tags com Enums
    
    Se você tem uma grande aplicação, você pode acabar acumulando **várias tags**, e você gostaria de ter certeza de que você sempre usa a **mesma tag** para *operações de rota* relacionadas.
    
    Nestes casos, pode fazer sentido armazenar as tags em um `Enum`.
    
    **FastAPI** suporta isso da mesma maneira que com strings simples:
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 17 05:59:11 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/test_schema.fbs

    file_identifier "TFL3";
    // File extension of any written files.
    file_extension "tflite";
    
    // IMPORTANT: All new members of tables, enums and unions must be added at the
    // end to ensure backwards compatibility.
    
    // The type of data stored in a tensor.
    enum TensorType : byte {
      FLOAT32 = 0,
      FLOAT16 = 1,
      INT32 = 2,
      UINT8 = 3,
      INT64 = 4,
      STRING = 5,
      BOOL = 6,
      INT16 = 7,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 19 19:46:06 UTC 2021
    - 26.1K bytes
    - Viewed (0)
  10. src/runtime/proc_runtime_test.go

    		}
    		for co := 0; co < len(ord.coprimes); co++ {
    			enum := ord.start(uint32(co))
    			checked := make([]bool, procs)
    			for p := 0; p < procs; p++ {
    				x := enum.position()
    				if checked[x] {
    					println("procs:", procs, "inc:", enum.inc)
    					panic("duplicate during enumeration")
    				}
    				checked[x] = true
    				enum.next()
    			}
    			if !enum.done() {
    				panic("not done")
    			}
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 18:43:08 UTC 2022
    - 1.4K bytes
    - Viewed (0)
Back to top