Package com.yetanalytics.xapi.model
Class XapiDuration
- java.lang.Object
-
- com.yetanalytics.xapi.model.XapiDuration
-
public class XapiDuration extends Object
Class representation of ISO 8601 Duration allowing for retrieval of the original String.
-
-
Constructor Summary
Constructors Constructor Description XapiDuration(String duration)This constructor takes an 8601 formatted String and converts it to an XapiDuration object consisting of java.time.Duration object and the original String.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetOriginal()Returns the original String version of the DurationDurationgetValue()Returns the java.time.Duration version of the Duration
-
-
-
Constructor Detail
-
XapiDuration
public XapiDuration(String duration)
This constructor takes an 8601 formatted String and converts it to an XapiDuration object consisting of java.time.Duration object and the original String.- Parameters:
duration- The duration field value from an xAPI Statement.
-
-