Enum NodeKind

java.lang.Object
java.lang.Enum<NodeKind>
org.instancio.internal.nodes.NodeKind
All Implemented Interfaces:
Serializable, Comparable<NodeKind>, java.lang.constant.Constable

public enum NodeKind extends Enum<NodeKind>
Since:
1.5.0
  • Enum Constant Details

    • DEFAULT

      public static final NodeKind 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 as String, LocalDate, BigDecimal, etc.
    • ARRAY

      public static final NodeKind ARRAY
      Represents an array.
    • COLLECTION

      public static final NodeKind COLLECTION
      java.util.Collection
    • MAP

      public static final NodeKind MAP
      java.util.Map
    • RECORD

      public static final NodeKind RECORD
      java.lang.Record
    • CONTAINER

      public static final NodeKind CONTAINER
      Represents a data structure whose child nodes are not fields, but type arguments.
      Since:
      2.0.0
  • Method Details

    • values

      public static NodeKind[] 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

      public static NodeKind valueOf(String name)
      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 name
      NullPointerException - if the argument is null