-
- All Implemented Interfaces:
-
java.io.Serializable
public class Length implements Serializable
Provides the representation of varying forms of length measure per the TTML specification.
-
-
Constructor Summary
Constructors Constructor Description Length(String expression)
Initializes a Length object by parsing the given expression. Length(double value, StyledElement.Unit unit)
Initializes a Length object using the given numeric value and Unit specification.
-
Method Summary
Modifier and Type Method Description StyledElement.Unit
getUnit()
The com.brightcove.player.model.StyledElement.Unit of this Length. boolean
equals(Object o)
int
hashCode()
-
-
Constructor Detail
-
Length
Length(String expression)
Initializes a Length object by parsing the given expression.- Parameters:
expression
- the string expression to parse
-
Length
Length(double value, StyledElement.Unit unit)
Initializes a Length object using the given numeric value and Unit specification.- Parameters:
value
- the numeric value of the lengthunit
- the units for the length value
-
-
Method Detail
-
getUnit
StyledElement.Unit getUnit()
The com.brightcove.player.model.StyledElement.Unit of this Length.
-
hashCode
int hashCode()
-
-
-
-