Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for isEnum (0.9 sec)

  1. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

              ParameterHasNoDistinctValueException,
              IllegalAccessException,
              InvocationTargetException,
              FactoryMethodReturnsNullException {
        if (cls.isEnum()) {
          return;
        }
        List<? extends Invokable<?, ?>> factories = Lists.reverse(getFactories(TypeToken.of(cls)));
        if (factories.isEmpty()) {
          return;
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/EnumMultiset.java

      private transient int distinctElements;
      private transient long size;
    
      /** Creates an empty {@code EnumMultiset}. */
      private EnumMultiset(Class<E> type) {
        this.type = type;
        checkArgument(type.isEnum());
        this.enumConstants = type.getEnumConstants();
        this.counts = new int[enumConstants.length];
      }
    
      private boolean isActuallyE(@Nullable Object o) {
        if (o instanceof Enum) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

              ParameterHasNoDistinctValueException,
              IllegalAccessException,
              InvocationTargetException,
              FactoryMethodReturnsNullException {
        if (cls.isEnum()) {
          return;
        }
        List<? extends Invokable<?, ?>> factories = Lists.reverse(getFactories(TypeToken.of(cls)));
        if (factories.isEmpty()) {
          return;
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

       */
      @Test
      public void testEquals() throws Exception {
        for (Class<?> classToTest :
            findClassesToTest(loadClassesInPackage(), EQUALS_TEST_METHOD_NAMES)) {
          if (!classToTest.isEnum() && isEqualsDefined(classToTest)) {
            try {
              tester.doTestEquals(classToTest);
            } catch (Throwable e) {
              throw sanityError(classToTest, EQUALS_TEST_METHOD_NAMES, "equals test", e);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

        if (implementation != null) {
          return get(implementation);
        }
        if (type == Stream.class) {
          return type.cast(Stream.empty());
        }
        if (type.isEnum()) {
          T[] enumConstants = type.getEnumConstants();
          return (enumConstants == null || enumConstants.length == 0) ? null : enumConstants[0];
        }
        if (type.isArray()) {
          return createEmptyArray(type);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

          return defaultValue;
        }
        Class<? extends T> implementation = getImplementation(type);
        if (implementation != null) {
          return get(implementation);
        }
        if (type.isEnum()) {
          T[] enumConstants = type.getEnumConstants();
          return (enumConstants == null || enumConstants.length == 0) ? null : enumConstants[0];
        }
        if (type.isArray()) {
          return createEmptyArray(type);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        Class<?> rawType = type.getRawType();
        List<Object> samples = sampleInstances.get(rawType);
        Object sample = pickInstance(samples, null);
        if (sample != null) {
          return sample;
        }
        if (rawType.isEnum()) {
          return pickInstance(rawType.getEnumConstants(), null);
        }
        if (type.isArray()) {
          TypeToken<?> componentType = requireNonNull(type.getComponentType());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 28.1K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        Class<?> rawType = type.getRawType();
        List<Object> samples = sampleInstances.get(rawType);
        Object sample = pickInstance(samples, null);
        if (sample != null) {
          return sample;
        }
        if (rawType.isEnum()) {
          return pickInstance(rawType.getEnumConstants(), null);
        }
        if (type.isArray()) {
          TypeToken<?> componentType = requireNonNull(type.getComponentType());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 28.7K bytes
    - Viewed (0)
  9. src/main/webapp/js/suggestor.js

                        }
                      );
    
                      $liEle.css("padding", "2px");
    
                      $olEle.append($liEle);
                      listNum++;
                    }
                  }
    
                  if (listNum > 0 && $textArea.val().length >= settingMinTerm) {
                    $boxElement.html("");
                    $boxElement.append($olEle);
                    $boxElement.css("display", "block");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Mar 30 05:45:24 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/math/DoubleUtils.java

        int exponent = absX.bitLength() - 1;
        // exponent == floor(log2(abs(x)))
        if (exponent < Long.SIZE - 1) {
          return x.longValue();
        } else if (exponent > MAX_EXPONENT) {
          return x.signum() * POSITIVE_INFINITY;
        }
    
        /*
         * We need the top SIGNIFICAND_BITS + 1 bits, including the "implicit" one bit. To make rounding
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top