public enum DataTypeFilter extends Enum<DataTypeFilter> implements Predicate<DataType>
DataTypes are used for a query.
The DataTypeFilter enum simply represents some default
implementations of the Predicate required by QueryOptions
and the values(Predicate) method.
Users are free to implement their own predicate. However, be aware that
it is possible that more DataTypes may be added in the future.
Ideally the Predicate implementations should be able to handle these
smoothly.
DataTypeFilterFunction| Enum Constant and Description |
|---|
ALL
A data type filter indicating that all
DataTypes should be used. |
NONE
A data type filter indicating that no
DataTypes should be used. |
NORMAL_ONLY
A data type filter indicating that only
DataType.NORMAL should be used. |
TRANSIENT_ONLY
A data type filter indicating that only
DataType.TRANSIENT should be used. |
| Modifier and Type | Method and Description |
|---|---|
static DataTypeFilter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataTypeFilter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static @NonNull List<DataType> |
values(@NonNull Predicate<? super DataType> predicate)
|
public static final DataTypeFilter ALL
DataTypes should be used.public static final DataTypeFilter NONE
DataTypes should be used.public static final DataTypeFilter NORMAL_ONLY
DataType.NORMAL should be used.public static final DataTypeFilter TRANSIENT_ONLY
DataType.TRANSIENT should be used.public static DataTypeFilter[] values()
for (DataTypeFilter c : DataTypeFilter.values()) System.out.println(c);
public static DataTypeFilter valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null