Package org.instancio.internal.nodes
Enum NodeKind
- All Implemented Interfaces:
Serializable
,Comparable<NodeKind>
,java.lang.constant.Constable
- Since:
- 1.5.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRepresents an array.java.util.Collection
Represents a data structure whose child nodes are not fields, but type arguments.Fallback kind.Represents a node marked with theignore()
method.java.util.Map
java.lang.Record
-
Method Summary
-
Enum Constant Details
-
IGNORED
Represents a node marked with theignore()
method. An ignored node has no children.- Since:
- 2.10.0
-
DEFAULT
Fallback kind. A node of this kind could represent either a POJO class or a JDK type that is considered to be a leaf node, such asString
,LocalDate
,BigDecimal
, etc. -
ARRAY
Represents an array. -
COLLECTION
java.util.Collection
-
MAP
java.util.Map
-
RECORD
java.lang.Record
-
CONTAINER
Represents a data structure whose child nodes are not fields, but type arguments.- Since:
- 2.0.0
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-