Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 674 for enum2 (0.05 sec)

  1. platforms/core-runtime/base-services/src/test/groovy/org/gradle/util/internal/GUtilTest.groovy

        }
    
        def "can convert strings to enums using the enum value names"() {
            expect:
            TestEnum.ENUM1 == toEnum(TestEnum, "ENUM1")
            TestEnum.ENUM1 == toEnum(TestEnum, "enum1")
            TestEnum.ENUM1 == toEnum(TestEnum, "EnUm1")
            TestEnum.ENUM2 == toEnum(TestEnum, "enum2")
            TestEnum.ENUM3 == toEnum(TestEnum, "enum3")
            TestEnum.ENUM_4_1 == toEnum(TestEnum, "enum_4_1")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  2. android/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);
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 26 16:35:21 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. 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);
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 26 16:35:21 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/Enums.java

       * {@code enumClass} using {@link Enum#valueOf(Class, String)} and {@link Enum#name()}. The
       * converter will throw an {@code IllegalArgumentException} if the argument is not the name of any
       * enum constant in the specified enum.
       *
       * @since 16.0
       */
      @GwtIncompatible
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 26 11:56:44 UTC 2023
    - 5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Enums.java

       * {@code enumClass} using {@link Enum#valueOf(Class, String)} and {@link Enum#name()}. The
       * converter will throw an {@code IllegalArgumentException} if the argument is not the name of any
       * enum constant in the specified enum.
       *
       * @since 16.0
       */
      @GwtIncompatible
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 26 11:56:44 UTC 2023
    - 5K bytes
    - Viewed (0)
  6. analysis/analysis-api/testData/components/containingDeclarationProvider/containingDeclarationByPsi/enums.kt

    enum class A {
        B, C;
        fun d(){}
        val e: Int = 10
    }
    
    class X {
        private Y {
            enum class U {
                UB, UC;
                fun ud(){}
                val ue: Int = 10
            }
        }
    
         class P {
            enum class W {
                WB, WC;
                fun wd(){}
                val we: Int = 10
            }
        }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Oct 26 19:19:00 UTC 2022
    - 327 bytes
    - Viewed (0)
  7. analysis/analysis-api/testData/components/compilerFacility/compilation/classKinds.txt

    }
    
    public final enum class Direction {
        // source: 'classKinds.kt'
        private synthetic final static field $ENTRIES: kotlin.enums.EnumEntries
        private synthetic final static field $VALUES: Direction[]
        public final enum static field EAST: Direction
        public final enum static field NORTH: Direction
        public final enum static field SOUTH: Direction
        public final enum static field WEST: Direction
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Dec 21 15:34:34 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/base/EnumsTest.java

        assertThat(Enums.getIfPresent(TestEnum.class, "POODLE")).hasValue(TestEnum.POODLE);
    
        assertThat(Enums.getIfPresent(TestEnum.class, "CHEETO")).isPresent();
        assertThat(Enums.getIfPresent(TestEnum.class, "HONDA")).isPresent();
        assertThat(Enums.getIfPresent(TestEnum.class, "POODLE")).isPresent();
    
        assertThat(Enums.getIfPresent(TestEnum.class, "CHEETO")).hasValue(TestEnum.CHEETO);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/TestEnumSetGenerator.java

    package com.google.common.collect.testing;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.testing.SampleElements.Enums;
    import java.util.Collections;
    import java.util.List;
    import java.util.Set;
    
    /**
     * An abstract TestSetGenerator for generating sets containing enum values.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Platform.java

      }
    
      static <T extends Enum<T>> Optional<T> getEnumIfPresent(Class<T> enumClass, String value) {
        WeakReference<? extends Enum<?>> ref = Enums.getEnumConstants(enumClass).get(value);
        /*
         * We use `fromNullable` instead of `of` because `WeakReference.get()` has a nullable return
         * type.
         *
         * In practice, we are very unlikely to see `null`: The `WeakReference` to the enum constant
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 15 22:32:14 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top