Interface Time

  • All Implemented Interfaces:
    java.io.Serializable , kotlin.Comparable

    
    public interface Time
     implements Comparable<Time>, Serializable
                        

    Interface for time representation.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class Time.Companion
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Time times(Double other) Allows to multiply this Time for a constant.
      abstract Time minus(Time other) Allows to subtract a Time to this Time.
      abstract Time plus(Time other) Allows to add a Time to this Time.
      abstract Double toDouble() Allows to get a double representation of this Time.
      Boolean isInfinite()
      • Methods inherited from class kotlin.Comparable

        compareTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • times

         abstract Time times(Double other)

        Allows to multiply this Time for a constant.

        Parameters:
        other - the Time to sum to the current Time
        Returns:

        the result of the multiplication

      • minus

         abstract Time minus(Time other)

        Allows to subtract a Time to this Time.

        Parameters:
        other - the time to subtract from the current Time
        Returns:

        the result of the subtraction

      • plus

         abstract Time plus(Time other)

        Allows to add a Time to this Time.

        Parameters:
        other - the time to sum to the current Time
        Returns:

        the result of the sum

      • toDouble

         abstract Double toDouble()

        Allows to get a double representation of this Time.

        Returns:

        the double representation of this Time