Class XapiDuration


  • public class XapiDuration
    extends Object
    Class representation of ISO 8601 Duration allowing for retrieval of the original String.
    • 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.
    • Method Detail

      • getOriginal

        public String getOriginal()
        Returns the original String version of the Duration
        Returns:
        Duration as a String
      • getValue

        public Duration getValue()
        Returns the java.time.Duration version of the Duration
        Returns:
        The Duration