Enum Class PrimitiveTypeName

java.lang.Object
java.lang.Enum<PrimitiveTypeName>
ru.objectsfill.types.primitive_type.PrimitiveTypeName
All Implemented Interfaces:
Serializable, Comparable<PrimitiveTypeName>, Constable

public enum PrimitiveTypeName extends Enum<PrimitiveTypeName>
enum with primitive types name and function to create array
  • Enum Constant Details

    • LONG

      public static final PrimitiveTypeName LONG
      Primitive long for array creation
    • INT

      public static final PrimitiveTypeName INT
      Primitive int for array creation
    • CHAR

      public static final PrimitiveTypeName CHAR
      Primitive char for array creation
    • DOUBLE

      public static final PrimitiveTypeName DOUBLE
      Primitive double for array creation
    • BYTE

      public static final PrimitiveTypeName BYTE
      Primitive byte for array creation
    • BOOLEAN

      public static final PrimitiveTypeName BOOLEAN
      Primitive boolean for array creation
  • Method Details

    • values

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

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

      public String getTypeName()
      getType name
      Returns:
      type name
    • getCreatePrimitiveArray

      public BinaryFunction<Fill,Field> getCreatePrimitiveArray()
      get the function to create array
      Returns:
      primitive array function
    • getByName

      public static PrimitiveTypeName getByName(String name)
      Find primitive by name
      Parameters:
      name - the Fill object containing the configuration for generating values
      Returns:
      primitive type name