Enum NativeTypeEnum
- java.lang.Object
-
- java.lang.Enum<NativeTypeEnum>
-
- net.haesleinhuepf.clij.coremem.enums.NativeTypeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<NativeTypeEnum>,SizedInBytes
public enum NativeTypeEnum extends Enum<NativeTypeEnum> implements SizedInBytes
Enum listing the different native primitive data types.- Author:
- royer
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ByteDoubleFloatHalfFloatIntLongShortUnsignedByteUnsignedIntUnsignedLongUnsignedShort
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSizeInBytes()Return this memory object's size in bytes.static NativeTypeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static NativeTypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Byte
public static final NativeTypeEnum Byte
-
UnsignedByte
public static final NativeTypeEnum UnsignedByte
-
Short
public static final NativeTypeEnum Short
-
UnsignedShort
public static final NativeTypeEnum UnsignedShort
-
Int
public static final NativeTypeEnum Int
-
UnsignedInt
public static final NativeTypeEnum UnsignedInt
-
Long
public static final NativeTypeEnum Long
-
UnsignedLong
public static final NativeTypeEnum UnsignedLong
-
HalfFloat
public static final NativeTypeEnum HalfFloat
-
Float
public static final NativeTypeEnum Float
-
Double
public static final NativeTypeEnum Double
-
-
Method Detail
-
values
public static NativeTypeEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NativeTypeEnum c : NativeTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NativeTypeEnum 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 nameNullPointerException- if the argument is null
-
getSizeInBytes
public long getSizeInBytes()
Description copied from interface:SizedInBytesReturn this memory object's size in bytes.- Specified by:
getSizeInBytesin interfaceSizedInBytes- Returns:
- size in bytes.
-
-