Package io.protostuff.runtime
Enum RuntimeView.Factories
- java.lang.Object
-
- java.lang.Enum<RuntimeView.Factories>
-
- io.protostuff.runtime.RuntimeView.Factories
-
- All Implemented Interfaces:
RuntimeView.Factory
,java.io.Serializable
,java.lang.Comparable<RuntimeView.Factories>
- Enclosing class:
- RuntimeView
public static enum RuntimeView.Factories extends java.lang.Enum<RuntimeView.Factories> implements RuntimeView.Factory
Built-in view schema factories.All factory args are required except:
Predicate.Factory
pfString
[] argsFor application/behavior specific filters, create your own view factory or predicate factory, and then design an ahead-of-time filter (which is usually done at application startup).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXCLUDE
Exclude the fields for merging and writing.EXCLUDE_OPTIMIZED_FOR_MERGE_ONLY
Deprecated.useEXCLUDE
INCLUDE
Include the fields for merging and writing.INCLUDE_OPTIMIZED_FOR_MERGE_ONLY
Deprecated.useINCLUDE
PREDICATE
Filters the fields to include based on aPredicate
.
-
Constructor Summary
Constructors Modifier Constructor Description private
Factories()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RuntimeView.Factories
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RuntimeView.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.RuntimeView.Factory
create
-
-
-
-
Enum Constant Detail
-
PREDICATE
public static final RuntimeView.Factories PREDICATE
Filters the fields to include based on aPredicate
.The
Predicate.Factory
arg is required.
-
EXCLUDE
public static final RuntimeView.Factories EXCLUDE
Exclude the fields for merging and writing.The args param is required (the field names to exclude) if
Predicate.Factory
is not provided.
-
EXCLUDE_OPTIMIZED_FOR_MERGE_ONLY
public static final RuntimeView.Factories EXCLUDE_OPTIMIZED_FOR_MERGE_ONLY
Deprecated.useEXCLUDE
-
INCLUDE
public static final RuntimeView.Factories INCLUDE
Include the fields for merging and writing.The args param is required (the field names to include).
-
INCLUDE_OPTIMIZED_FOR_MERGE_ONLY
public static final RuntimeView.Factories INCLUDE_OPTIMIZED_FOR_MERGE_ONLY
Deprecated.useINCLUDE
-
-
Method Detail
-
values
public static RuntimeView.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 (RuntimeView.Factories c : RuntimeView.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 RuntimeView.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
-
-