Package uk.ac.starlink.ttools.plot2.data
Enum StorageType
- All Implemented Interfaces:
Serializable
,Comparable<StorageType>
,java.lang.constant.Constable
Enumerates the possibilities for internal storage of coordinate data
for presentation to the plotting classes.
In particular defines the type of the object returned by
Coord.inputStorage(uk.ac.starlink.table.ValueInfo[], uk.ac.starlink.table.DomainMapper[])
return functions.
At time of writing, this data is stored in memory, but in principle they could be cached in some disk-based file. For that reason, they should as far as possible be restricted to objects that are easily serialized to a byte array (primitives, ideally scalars or fixed-length arrays).
- Since:
- 4 Feb 2013
- Author:
- Mark Taylor
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBoolean type.Byte type.Double precision type.Double precision variable length array type.Double precision triple type.Single precision type.Single precision variable length array type.Single precision triple type.Integer type.Integer triple type.Long integer type.Short integer type.String type. -
Method Summary
Modifier and TypeMethodDescriptionstatic StorageType
Returns the enum constant of this type with the specified name.static StorageType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BOOLEAN
Boolean type. Output type isBoolean
. -
DOUBLE
Double precision type. Output type isDouble
. -
FLOAT
Single precision type. Output type isFloat
. -
LONG
Long integer type. Output type isLong
. -
INT
Integer type. Output type isInteger
. -
SHORT
Short integer type. Output type isShort
. -
BYTE
Byte type. Output type isByte
. -
STRING
String type. Output type isString
. -
INT3
Integer triple type. Output type isint[3]
. -
DOUBLE3
Double precision triple type. Output type isdouble[3]
. -
FLOAT3
Single precision triple type. Output type isfloat[3]
. -
DOUBLE_ARRAY
Double precision variable length array type. Output type isdouble[]
. -
FLOAT_ARRAY
Single precision variable length array type. Output type isfloat[]
.
-
-
Method Details
-
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
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
-