EnumerationHandler

public class EnumerationHandler<T> implements DataHandler<S>

Constructors

Link copied to clipboard
public void EnumerationHandler(Class<T> type, Array<T> values)

Properties

Link copied to clipboard
public final static DataHandler<Boolean> BOOLEAN
A data handler for booleans.
Link copied to clipboard
public final static DataHandler<Integer> INTEGER
A data handler for integers.
Link copied to clipboard
public final static DataHandler<Double> REAL
A data handler for doubles.

Functions

Link copied to clipboard
public boolean checkDoubleValue(double value)
Check if value is a valid double representation for handled data type.
Link copied to clipboard
public boolean checkObjectValue(Object o)
Check if the object o is a valid data type.
Link copied to clipboard
public boolean checkStringValue(String value)
Check if value is a valid string representation for handled data type.
Link copied to clipboard
public double doubleOf(Object t)
Return a double representation of a data item s.
Link copied to clipboard
public T fromDouble(double value)
Convert a double value into the data item.
Link copied to clipboard
public T fromObject(Object o)
Cast an object o in the handled data type S.
Link copied to clipboard
public T fromString(String str)
Parse a data item from a String.
Link copied to clipboard
public Class<T> getTypeOf()
Returns the handled data type.
Link copied to clipboard
public int indexOf(T t)
Link copied to clipboard
public String stringOf(T t)
Return a string representation of a data item s.