Serializable, Comparable<RestrictionType>public enum RestrictionType extends Enum<RestrictionType>
| Enum Constant | Description |
|---|---|
NOT_ALLOWED |
|
REQUIRE_CONSENT |
|
REQUIRE_LEGITIMATE_INTEREST |
|
UNDEFINED |
| Modifier and Type | Method | Description |
|---|---|---|
static RestrictionType |
from(int id) |
|
static RestrictionType |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static RestrictionType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RestrictionType NOT_ALLOWED
public static final RestrictionType REQUIRE_CONSENT
public static final RestrictionType REQUIRE_LEGITIMATE_INTEREST
public static final RestrictionType UNDEFINED
public static RestrictionType[] values()
for (RestrictionType c : RestrictionType.values()) System.out.println(c);
public static RestrictionType 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 static RestrictionType from(int id)
Copyright © 2020. All rights reserved.