public enum GuavaLibrary extends java.lang.Enum<GuavaLibrary> implements Feature<GuavaLibrary>
UNAVAILABLE in tests.| Enum Constant and Description |
|---|
AVAILABLE |
UNAVAILABLE |
| Modifier and Type | Field and Description |
|---|---|
static FeatureType<GuavaLibrary> |
GUAVA
Constant to pass to
SourceBuilder.feature(FeatureType) to get the current status of
GuavaLibrary. |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.base.Optional<java.lang.Class<?>> |
arrayUtils(javax.lang.model.type.TypeMirror elementType)
Returns a type with an
asList method suitable for an array of elementType
elements, if one exists. |
boolean |
isAvailable() |
java.lang.String |
toString() |
static GuavaLibrary |
valueOf(java.lang.String name)
Returns 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.
|
public static final GuavaLibrary AVAILABLE
public static final GuavaLibrary UNAVAILABLE
public static final FeatureType<GuavaLibrary> GUAVA
SourceBuilder.feature(FeatureType) to get the current status of
GuavaLibrary.public static GuavaLibrary[] values()
for (GuavaLibrary c : GuavaLibrary.values()) System.out.println(c);
public static GuavaLibrary valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isAvailable()
public com.google.common.base.Optional<java.lang.Class<?>> arrayUtils(javax.lang.model.type.TypeMirror elementType)
asList method suitable for an array of elementType
elements, 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 like Ints, if Guava is available.
public java.lang.String toString()
toString in class java.lang.Enum<GuavaLibrary>