public enum Arity extends java.lang.Enum<Arity>
| Modifier and Type | Field and Description |
|---|---|
static Arity[] |
EMPTY_ARRAY |
| Modifier and Type | Method and Description |
|---|---|
static Arity |
getEnum(java.lang.String name) |
java.lang.String |
getName() |
static Arity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Arity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Arity ZERO
public static final Arity ONE
public static final Arity TWO
public static final Arity FEW
public static final Arity MANY
public static final Arity OTHER
public static final Arity[] EMPTY_ARRAY
public static Arity[] values()
for (Arity c : Arity.values()) System.out.println(c);
public static Arity valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null@NonNull public java.lang.String getName()
@Nullable public static Arity getEnum(@NonNull java.lang.String name)