Package chat.octet.model.enums
Enum Class LlamaTokenAttr
- All Implemented Interfaces:
Serializable,Comparable<LlamaTokenAttr>,java.lang.constant.Constable
Llama token type define
- Author:
- William
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionByte type.Control type.Left strip type.Normal type.Normalized type.Right strip type.Single word type.Undefined type.Unknown type.Unused type.User defined type. -
Method Summary
Modifier and TypeMethodDescriptiontoString()static LlamaTokenAttrReturns the enum constant of this class with the specified name.static LlamaTokenAttrvalueOfType(int type) static LlamaTokenAttr[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LLAMA_TOKEN_ATTR_UNDEFINED
Undefined type. -
LLAMA_TOKEN_ATTR_UNKNOWN
Unknown type. -
LLAMA_TOKEN_ATTR_UNUSED
Unused type. -
LLAMA_TOKEN_ATTR_NORMAL
Normal type. -
LLAMA_TOKEN_ATTR_CONTROL
Control type. -
LLAMA_TOKEN_ATTR_USER_DEFINED
User defined type. -
LLAMA_TOKEN_ATTR_BYTE
Byte type. -
LLAMA_TOKEN_ATTR_NORMALIZED
Normalized type. -
LLAMA_TOKEN_ATTR_LSTRIP
Left strip type. -
LLAMA_TOKEN_ATTR_RSTRIP
Right strip type. -
LLAMA_TOKEN_ATTR_SINGLE_WORD
Single word type.
-
-
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
-
valueOfType
-
toString
- Overrides:
toStringin classEnum<LlamaTokenAttr>
-