Package io.micronaut.serde.support
Enum Class AbstractStreamDecoder.TokenType
java.lang.Object
java.lang.Enum<AbstractStreamDecoder.TokenType>
io.micronaut.serde.support.AbstractStreamDecoder.TokenType
- All Implemented Interfaces:
Serializable
,Comparable<AbstractStreamDecoder.TokenType>
,Constable
- Enclosing class:
- AbstractStreamDecoder
The token type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA boolean.End of an array.End of an object.A key.Anull
value.A number.Any other token.Start of an array.Start of an object.A string. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static AbstractStreamDecoder.TokenType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
START_ARRAY
Start of an array. -
END_ARRAY
End of an array. -
START_OBJECT
Start of an object. -
END_OBJECT
End of an object. -
KEY
A key. -
NUMBER
A number. -
STRING
A string. -
BOOLEAN
A boolean. -
NULL
Anull
value. -
OTHER
Any other token.
-
-
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
-