Package org.comroid.mutatio.span
Enum Span.DefaultModifyPolicy
- java.lang.Object
-
- java.lang.Enum<Span.DefaultModifyPolicy>
-
- org.comroid.mutatio.span.Span.DefaultModifyPolicy
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Span.DefaultModifyPolicy>,ModifyPolicy
public static enum Span.DefaultModifyPolicy extends java.lang.Enum<Span.DefaultModifyPolicy> implements ModifyPolicy
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IMMUTABLENULL_ON_INITPROHIBIT_NULLSSKIP_NULLS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanCleanup(java.lang.Object var)booleancanInitialize(java.lang.Object var)booleancanIterate(java.lang.Object var)booleancanOverwrite(java.lang.Object old, java.lang.Object with)booleancanRemove(java.lang.Object var)voidfail(java.lang.String message)static Span.DefaultModifyPolicyvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Span.DefaultModifyPolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SKIP_NULLS
public static final Span.DefaultModifyPolicy SKIP_NULLS
-
NULL_ON_INIT
public static final Span.DefaultModifyPolicy NULL_ON_INIT
-
PROHIBIT_NULLS
public static final Span.DefaultModifyPolicy PROHIBIT_NULLS
-
IMMUTABLE
public static final Span.DefaultModifyPolicy IMMUTABLE
-
-
Method Detail
-
values
public static Span.DefaultModifyPolicy[] 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 (Span.DefaultModifyPolicy c : Span.DefaultModifyPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Span.DefaultModifyPolicy 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
-
canInitialize
public boolean canInitialize(java.lang.Object var)
- Specified by:
canInitializein interfaceModifyPolicy
-
canIterate
public boolean canIterate(java.lang.Object var)
- Specified by:
canIteratein interfaceModifyPolicy
-
canOverwrite
public boolean canOverwrite(java.lang.Object old, java.lang.Object with)- Specified by:
canOverwritein interfaceModifyPolicy
-
canRemove
public boolean canRemove(java.lang.Object var)
- Specified by:
canRemovein interfaceModifyPolicy
-
canCleanup
public boolean canCleanup(java.lang.Object var)
- Specified by:
canCleanupin interfaceModifyPolicy
-
fail
public void fail(java.lang.String message) throws java.lang.NullPointerException- Specified by:
failin interfaceModifyPolicy- Throws:
java.lang.NullPointerException
-
-