Package io.protostuff.runtime
Enum Predicate.Factories
- java.lang.Object
-
- java.lang.Enum<Predicate.Factories>
-
- io.protostuff.runtime.Predicate.Factories
-
- All Implemented Interfaces:
Predicate.Factory
,java.io.Serializable
,java.lang.Comparable<Predicate.Factories>
- Enclosing interface:
- Predicate
public static enum Predicate.Factories extends java.lang.Enum<Predicate.Factories> implements Predicate.Factory
Built-in factories that filters based on the field number.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Factories()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Predicate.Factories
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Predicate.Factories[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface io.protostuff.runtime.Predicate.Factory
create
-
-
-
-
Enum Constant Detail
-
EQ
public static final Predicate.Factories EQ
-
NOTEQ
public static final Predicate.Factories NOTEQ
-
GT
public static final Predicate.Factories GT
-
LT
public static final Predicate.Factories LT
-
RANGE
public static final Predicate.Factories RANGE
-
NOTRANGE
public static final Predicate.Factories NOTRANGE
-
-
Method Detail
-
values
public static Predicate.Factories[] 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 (Predicate.Factories c : Predicate.Factories.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Predicate.Factories 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
-
-