Package com.google.common.reflect
Enum TypeToken.TypeFilter
- java.lang.Object
-
- java.lang.Enum<TypeToken.TypeFilter>
-
- com.google.common.reflect.TypeToken.TypeFilter
-
- All Implemented Interfaces:
Predicate<TypeToken<?>>
,java.io.Serializable
,java.lang.Comparable<TypeToken.TypeFilter>
,java.util.function.Predicate<TypeToken<?>>
private static enum TypeToken.TypeFilter extends java.lang.Enum<TypeToken.TypeFilter> implements Predicate<TypeToken<?>>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IGNORE_TYPE_VARIABLE_OR_WILDCARD
INTERFACE_ONLY
-
Constructor Summary
Constructors Modifier Constructor Description private
TypeFilter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TypeToken.TypeFilter
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TypeToken.TypeFilter[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IGNORE_TYPE_VARIABLE_OR_WILDCARD
public static final TypeToken.TypeFilter IGNORE_TYPE_VARIABLE_OR_WILDCARD
-
INTERFACE_ONLY
public static final TypeToken.TypeFilter INTERFACE_ONLY
-
-
Method Detail
-
values
public static TypeToken.TypeFilter[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TypeToken.TypeFilter c : TypeToken.TypeFilter.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TypeToken.TypeFilter valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-