Package io.protostuff.runtime
Enum RuntimeView.Factories
- All Implemented Interfaces:
RuntimeView.Factory
,Serializable
,Comparable<RuntimeView.Factories>
,java.lang.constant.Constable
- Enclosing class:
RuntimeView
public static enum RuntimeView.Factories
extends Enum<RuntimeView.Factories>
implements RuntimeView.Factory
Built-in view schema factories.
All factory args are required except:Predicate.Factory
pfString
[] args
For 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).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RuntimeView.Factories
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, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface io.protostuff.runtime.RuntimeView.Factory
create
-
Enum Constant Details
-
PREDICATE
Filters the fields to include based on aPredicate
.The
Predicate.Factory
arg is required. -
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
Deprecated.useEXCLUDE
-
INCLUDE
Include the fields for merging and writing.The args param is required (the field names to include).
-
INCLUDE_OPTIMIZED_FOR_MERGE_ONLY
Deprecated.useINCLUDE
-
-
Constructor Details
-
Factories
private Factories()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
EXCLUDE