Package arez.annotations
Enum Class Multiplicity
- All Implemented Interfaces:
Serializable
,Comparable<Multiplicity>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe inverse is related to many references.The inverse is related to exactly one reference.The inverse is related to one or no reference. -
Method Summary
Modifier and TypeMethodDescriptionstatic Multiplicity
Returns the enum constant of this class with the specified name.static Multiplicity[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MANY
The inverse is related to many references. The type of the inverse must be one ofCollection
,List
or aSet
with a type parameter compatible with the class containing the method annotated with theReference
annotation. -
ONE
The inverse is related to exactly one reference. The type of the inverse must be compatible with the class containing the method annotated with theReference
annotation. The inverse MUST be annotated withNonnull
-
ZERO_OR_ONE
The inverse is related to one or no reference. The type of the inverse must be compatible with the class containing the method annotated with theReference
annotation. The inverse MUST be annotated withNullable
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-