Enum GuavaLibrary
- All Implemented Interfaces:
Serializable,Comparable<GuavaLibrary>,java.lang.constant.Constable,Feature<GuavaLibrary>
Whether the Guava library is available or not. Defaults to
UNAVAILABLE in tests.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FeatureType<GuavaLibrary> Constant to pass toSourceBuilder.feature(FeatureType)to get the current status ofGuavaLibrary.private final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarrayUtils(TypeMirror elementType) Returns a type with anasListmethod suitable for an array ofelementTypeelements, if one exists.booleanprivate static Class<?> primitiveUtils(TypeMirror elementType) toString()static GuavaLibraryReturns the enum constant of this type with the specified name.static GuavaLibrary[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AVAILABLE
-
UNAVAILABLE
-
-
Field Details
-
GUAVA
Constant to pass toSourceBuilder.feature(FeatureType)to get the current status ofGuavaLibrary. -
humanReadableFormat
-
-
Constructor Details
-
GuavaLibrary
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isAvailable
public boolean isAvailable() -
primitiveUtils
-
arrayUtils
Returns a type with anasListmethod suitable for an array ofelementTypeelements, if one exists.For non-primitive element types, this is just
Arrays. For primitive element types, it will be one of the Guava utility classes likeInts, if Guava is available. -
toString
- Overrides:
toStringin classEnum<GuavaLibrary>
-