DataHandler

public interface DataHandler<S>

A DataHandler is used to manage input/output of a signal value of type S.

Author

loreti

Inheritors

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