public enum SemanticsRule extends Enum<SemanticsRule>
| Enum Constant and Description |
|---|
EMAIL
Email semantics rule.
|
PHONE
Phone semantics rule.
|
RED_ENVELOPE
Red envelope semantics rule.
|
| Modifier and Type | Field and Description |
|---|---|
private int |
rule |
| Modifier and Type | Method and Description |
|---|---|
static SemanticsRule |
deserialize(int rule)
Deserialize range type.
|
int |
getRule()
Gets type.
|
static SemanticsRule |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SemanticsRule[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SemanticsRule PHONE
public static final SemanticsRule EMAIL
public static final SemanticsRule RED_ENVELOPE
public static SemanticsRule[] values()
for (SemanticsRule c : SemanticsRule.values()) System.out.println(c);
public static SemanticsRule valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getRule()
public static SemanticsRule deserialize(int rule)
rule - the ruleCopyright © 2025. All rights reserved.