Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 12 of 12 for getEnumConstants (0.05 sec)

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

          throws ParameterNotInstantiableException,
              IllegalAccessException,
              InvocationTargetException,
              FactoryMethodReturnsNullException {
        if (cls.isEnum()) {
          T[] constants = cls.getEnumConstants();
          if (constants != null && constants.length > 0) {
            return constants[0];
          } else {
            return null;
          }
        }
        TypeToken<T> type = TypeToken.of(cls);
    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. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

       */
      @VisibleForTesting
      static <E extends Enum<E>> Map<E, LockGraphNode> createNodes(Class<E> clazz) {
        EnumMap<E, LockGraphNode> map = Maps.newEnumMap(clazz);
        E[] keys = clazz.getEnumConstants();
        int numKeys = keys.length;
        ArrayList<LockGraphNode> nodes = Lists.newArrayListWithCapacity(numKeys);
        // Create a LockGraphNode for each enum value.
        for (E key : keys) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 35.9K bytes
    - Viewed (0)
Back to top