public static enum JSATData.FloatStorageMethod extends Enum<JSATData.FloatStorageMethod>
Modifier and Type | Method and Description |
---|---|
static <Type extends DataSet<Type>> |
getMethod(DataSet<Type> data,
JSATData.FloatStorageMethod method) |
protected abstract boolean |
noLoss(double orig) |
protected abstract double |
readFP(DataInputStream in) |
static JSATData.FloatStorageMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JSATData.FloatStorageMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
protected abstract void |
writeFP(double value,
DataOutputStream out) |
public static final JSATData.FloatStorageMethod AUTO
public static final JSATData.FloatStorageMethod FP64
public static final JSATData.FloatStorageMethod FP32
public static final JSATData.FloatStorageMethod SHORT
public static final JSATData.FloatStorageMethod BYTE
public static final JSATData.FloatStorageMethod U_BYTE
public static JSATData.FloatStorageMethod[] values()
for (JSATData.FloatStorageMethod c : JSATData.FloatStorageMethod.values()) System.out.println(c);
public static JSATData.FloatStorageMethod valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullprotected abstract void writeFP(double value, DataOutputStream out) throws IOException
IOException
protected abstract double readFP(DataInputStream in) throws IOException
IOException
protected abstract boolean noLoss(double orig)
public static <Type extends DataSet<Type>> JSATData.FloatStorageMethod getMethod(DataSet<Type> data, JSATData.FloatStorageMethod method)
Copyright © 2017. All rights reserved.