Enum Class JavaType

java.lang.Object
java.lang.Enum<JavaType>
org.ojalgo.machine.JavaType
All Implemented Interfaces:
Serializable, Comparable<JavaType>, Constable

public enum JavaType extends Enum<JavaType>
  B   byte       signed byte
  C   char       Unicode character code point in the Basic Multilingual Plane,
                 encoded with UTF-16
  D   double     double-precision floating-point value
  F   float      single-precision floating-point value
  I   int        integer
  J   long       long integer
  L ClassName ;  reference             an instance of class ClassName
  S   short      signed short
  Z   boolean    true or false
  [   reference  one array dimension
 
https://stackoverflow.com/questions/32768036/why-is-l-the-prefix-for-reference-types-instead-of-some-other-letter
  • Enum Constant Details

    • BOOLEAN

      public static final JavaType BOOLEAN
    • BYTE

      public static final JavaType BYTE
    • CHAR

      public static final JavaType CHAR
    • DOUBLE

      public static final JavaType DOUBLE
    • FLOAT

      public static final JavaType FLOAT
    • INT

      public static final JavaType INT
    • LONG

      public static final JavaType LONG
    • REFERENCE

      public static final JavaType REFERENCE
      4 bytes with 32-bit JVM or 64-bit JVM with compressed pointers (All JVM:s assigned less than 32GB)
    • SHORT

      public static final JavaType SHORT
  • Field Details

    • myInformationBits

      private final int myInformationBits
    • myJavaClass

      private final Class<?> myJavaClass
    • myMemoryBytes

      private final long myMemoryBytes
  • Constructor Details

    • JavaType

      private JavaType(Class<?> aClass, int informationBits, long memoryBytes)
  • Method Details

    • values

      public static JavaType[] 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 JavaType 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
    • match

      public static final JavaType match(Class<?> aClass)
    • estimateSizeOfWrapperClass

      public final long estimateSizeOfWrapperClass()
    • getJavaClass

      public Class<?> getJavaClass()
    • memory

      public final long memory()
    • getInformationBits

      final int getInformationBits()