Class Mins

  • All Implemented Interfaces:
    Duration, java.io.Serializable

    public class Mins
    extends ConcreteDuration
    implements java.io.Serializable
    A finite number of minutes. There are two implementations provided of the conversions methods one as object interface, where an object of the current class has to be instantiated. The oder implementation is provided as static class methods. Performance tests of both implementations have come up with a performance improvement of 20% of the static methods compared with the object methods.
    See Also:
    Serialized Form
    • Constructor Detail

      • Mins

        public Mins()
        Default constructor
      • Mins

        public Mins​(double mins)
        Construct object from number of minutes.
        Parameters:
        mins - number of mins [minutes]
    • Method Detail

      • asNanoSecs

        public static long asNanoSecs​(double mins)
        Parameters:
        mins - Time in mins to convert
        Returns:
        Minutes expressed in nanoSec
      • asSecs

        public static double asSecs​(double mins)
        Parameters:
        mins - Time in mins to convert
        Returns:
        Mins expressed in secs
      • asHours

        public static double asHours​(double mins)
        Parameters:
        mins - Time in mins to convert
        Returns:
        Mins expressed in hours
      • asRevs

        public static double asRevs​(double mins)
        Parameters:
        mins - Time in mins to convert
        Returns:
        Mins expressed in revs
      • asDays

        public static double asDays​(double mins)
        Parameters:
        mins - Time in mins to convert
        Returns:
        Mins expressed in days
      • asJulianYears

        public static double asJulianYears​(double mins)
        Parameters:
        mins - Time in mins to convert
        Returns:
        Mins expressed in JulianYears
      • clone

        public Mins clone()
        Overrides:
        clone in class java.lang.Object
        See Also:
        Object.clone()