Package net.sf.basedb.core
Enum AnnotationBatcher.Change
- java.lang.Object
-
- java.lang.Enum<AnnotationBatcher.Change>
-
- net.sf.basedb.core.AnnotationBatcher.Change
-
- All Implemented Interfaces:
Serializable
,Comparable<AnnotationBatcher.Change>
- Enclosing class:
- AnnotationBatcher
public static enum AnnotationBatcher.Change extends Enum<AnnotationBatcher.Change>
A flag indicating what type of change that was made to an annotation as a result of callingAnnotationBatcher.setValues(AnnotationType, List, Unit, boolean)
-
-
Field Summary
Fields Modifier and Type Field Description private ChangeType
logChangeType
-
Constructor Summary
Constructors Modifier Constructor Description private
Change(ChangeType logChangeType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) ChangeType
getLogChangeType()
static AnnotationBatcher.Change
valueOf(String name)
Returns the enum constant of this type with the specified name.static AnnotationBatcher.Change[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_CHANGE
public static final AnnotationBatcher.Change NO_CHANGE
The annotation was not changed.
-
ADDED
public static final AnnotationBatcher.Change ADDED
A new annotation was created.
-
UPDATED
public static final AnnotationBatcher.Change UPDATED
An existing annotation was updated.
-
DELETED
public static final AnnotationBatcher.Change DELETED
An existing annotation was deleted.
-
-
Field Detail
-
logChangeType
private final ChangeType logChangeType
-
-
Constructor Detail
-
Change
private Change(ChangeType logChangeType)
-
-
Method Detail
-
values
public static AnnotationBatcher.Change[] 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 (AnnotationBatcher.Change c : AnnotationBatcher.Change.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AnnotationBatcher.Change valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getLogChangeType
ChangeType getLogChangeType()
-
-