Package org.projectbarbel.histo.model
Enum BitemporalObjectState
- java.lang.Object
-
- java.lang.Enum<BitemporalObjectState>
-
- org.projectbarbel.histo.model.BitemporalObjectState
-
- All Implemented Interfaces:
Serializable
,Comparable<BitemporalObjectState>
,java.lang.constant.Constable
public enum BitemporalObjectState extends Enum<BitemporalObjectState>
Versions have two main states: active means they are valid from a business viewpoint. Inactive means "deleted" from a business viewpoint.- Author:
- Niklas Schlimm
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Method Summary
Modifier and Type Method Description static BitemporalObjectState
valueOf(String name)
Returns the enum constant of this type with the specified name.static BitemporalObjectState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACTIVE
public static final BitemporalObjectState ACTIVE
-
INACTIVE
public static final BitemporalObjectState INACTIVE
-
-
Method Detail
-
values
public static BitemporalObjectState[] 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
public static BitemporalObjectState 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
-
-