Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ClassValue (0.61 sec)

  1. guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

        @J2ObjCIncompatible // ClassValue
        enum ClassValueValidator implements GetCheckedTypeValidator {
          INSTANCE;
    
          /*
           * Static final fields are presumed to be fastest, based on our experience with
           * UnsignedBytesBenchmark. TODO(cpovirk): benchmark this
           */
          private static final ClassValue<Boolean> isValidClass =
              new ClassValue<Boolean>() {
                @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

              validClasses.clear();
            }
    
            validClasses.add(new WeakReference<Class<? extends Exception>>(exceptionClass));
          }
        }
    
        /**
         * Returns the ClassValue-using validator, or falls back to the "weak Set" implementation if
         * unable to do so.
         */
        static GetCheckedTypeValidator getBestValidator() {
          return weakSetValidator();
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 10.2K bytes
    - Viewed (0)
Back to top