Enum Class Restriction
- All Implemented Interfaces:
Serializable, Comparable<Restriction>, Constable
The enum Restriction.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRestricted restriction.Unrestricted restriction.Unsupported restriction. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.tuweni.bytes.BytesgetBytes()Gets bytes.static RestrictionReturns the enum constant of this class with the specified name.static Restriction[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RESTRICTED
Restricted restriction. -
UNRESTRICTED
Unrestricted restriction. -
UNSUPPORTED
Unsupported restriction.
-
-
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
-
getBytes
public org.apache.tuweni.bytes.Bytes getBytes()Gets bytes.- Returns:
- the bytes
-