Class FuturesGetChecked.GetCheckedTypeValidatorHolder
- java.lang.Object
-
- com.google.common.util.concurrent.FuturesGetChecked.GetCheckedTypeValidatorHolder
-
- Enclosing class:
- FuturesGetChecked
static class FuturesGetChecked.GetCheckedTypeValidatorHolder extends java.lang.Object
Provides a check of whether an exception type is valid for use withFuturesGetChecked.getChecked(Future, Class)
, possibly using caching.Uses reflection to gracefully fall back to when certain implementations aren't available.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
FuturesGetChecked.GetCheckedTypeValidatorHolder.ClassValueValidator
(package private) static class
FuturesGetChecked.GetCheckedTypeValidatorHolder.WeakSetValidator
-
Field Summary
Fields Modifier and Type Field Description (package private) static FuturesGetChecked.GetCheckedTypeValidator
BEST_VALIDATOR
(package private) static java.lang.String
CLASS_VALUE_VALIDATOR_NAME
-
Constructor Summary
Constructors Constructor Description GetCheckedTypeValidatorHolder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static FuturesGetChecked.GetCheckedTypeValidator
getBestValidator()
Returns the ClassValue-using validator, or falls back to the "weak Set" implementation if unable to do so.
-
-
-
Field Detail
-
CLASS_VALUE_VALIDATOR_NAME
static final java.lang.String CLASS_VALUE_VALIDATOR_NAME
-
BEST_VALIDATOR
static final FuturesGetChecked.GetCheckedTypeValidator BEST_VALIDATOR
-
-
Method Detail
-
getBestValidator
static FuturesGetChecked.GetCheckedTypeValidator getBestValidator()
Returns the ClassValue-using validator, or falls back to the "weak Set" implementation if unable to do so.
-
-