Class Temporal

java.lang.Object
org.opencastproject.metadata.dublincore.Temporal

public abstract class Temporal extends Object
A time related algebraic data type.
  • Method Details

    • instant

      public static Temporal instant(Date instant)
      An instant in time.
    • period

      public static Temporal period(DCMIPeriod period)
      A period in time limited by at least one instant.
    • duration

      public static Temporal duration(long duration)
      A time span measured in milliseconds.
    • fold

      public abstract <A> A fold(Temporal.Match<A> v)
      Safe decomposition.