* This is the interface for using state values and reading their contents.
*
* @author Alexandre Montplaisir
- * @since 3.0
*/
-public interface ITmfStateValue {
+public interface ITmfStateValue extends Comparable<ITmfStateValue> {
/**
* The supported types of state values
- * @since 2.0
*/
public enum Type {
/** Null value, for an interval not carrying any information */
INTEGER,
/** 64-bit integer value */
LONG,
- /** IEEE 754 double precision number
- * @since 3.0*/
+ /** IEEE 754 double precision number */
DOUBLE,
/** Variable-length string value */
STRING,
* depending on the needs of the different users.
*
* @return The ITmfStateValue.Type enum representing the type of this value
- * @since 2.0
*/
Type getType();
* @return The long contained in the state value
* @throws StateValueTypeException
* If the contained value cannot be read as a long
- * @since 2.0
*/
long unboxLong();
* @return The double contained in the state value
* @throws StateValueTypeException
* If the contained value cannot be read as a double
- * @since 3.0
*/
double unboxDouble();
* If the contained value cannot be read as a String
*/
String unboxStr();
+
}