Enum Class DefaultType

java.lang.Object
java.lang.Enum<DefaultType>
io.aeron.config.DefaultType
All Implemented Interfaces:
Serializable, Comparable<DefaultType>, Constable

public enum DefaultType extends Enum<DefaultType>
Indicates the 'type' of the default field/value.
  • Enum Constant Details

    • UNDEFINED

      public static final DefaultType UNDEFINED
      Type is undefined.
    • BOOLEAN

      public static final DefaultType BOOLEAN
      Boolean type.
    • INT

      public static final DefaultType INT
      Int32 type.
    • LONG

      public static final DefaultType LONG
      Int64 type.
    • DOUBLE

      public static final DefaultType DOUBLE
      Floating point type.
    • STRING

      public static final DefaultType STRING
      String type.
  • Method Details

    • values

      public static DefaultType[] 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 DefaultType 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
    • fromCanonicalName

      public static DefaultType fromCanonicalName(String canonicalName)
      Parameters:
      canonicalName - the name of the java class.
      Returns:
      the associated DefaultType.
    • isUndefined

      public static boolean isUndefined(DefaultType defaultType)
      Parameters:
      defaultType - a DefaultType or null.
      Returns:
      true if the type is null or if it's UNDEFINED, otherwise false.
    • isNumeric

      public boolean isNumeric()
      Returns:
      indicates whether the value is numeric (int or long).
    • getSimpleName

      public String getSimpleName()
      Returns:
      a simple name, for display purposes.