|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Configuration.PrimitiveDefaultValueMode>
de.danielbechler.diff.Configuration.PrimitiveDefaultValueMode
public static enum Configuration.PrimitiveDefaultValueMode
Defines how default values of primitive types (int, long, short, byte, char, boolean, float, double) will be treated. A default value is either the one specified by the JDK (numbers are 0, booleans are false) or the value of the corresponding property when a new instance of its holding class gets created. In order to determine the proper default value, we'll attempt to instantiate the holding class once via its public constructor. If this instantiation fails (for example if there is no such constructor), we'll fall back to the JDK default. This configuration does not apply to the corresponding wrapper types (Integer, Long, Short, Byte, Character, Boolean, Float, Double).
Enum Constant Summary | |
---|---|
ASSIGNED
Default values of primitive types will be treated like any other value. |
|
UNASSIGNED
Default values of primitive types will be treated as if the property has not been set. |
Method Summary | |
---|---|
static Configuration.PrimitiveDefaultValueMode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Configuration.PrimitiveDefaultValueMode[] |
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 class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Configuration.PrimitiveDefaultValueMode ASSIGNED
public static final Configuration.PrimitiveDefaultValueMode UNASSIGNED
Method Detail |
---|
public static Configuration.PrimitiveDefaultValueMode[] values()
for (Configuration.PrimitiveDefaultValueMode c : Configuration.PrimitiveDefaultValueMode.values()) System.out.println(c);
public static Configuration.PrimitiveDefaultValueMode valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |