Class Time


  • public final class Time
    extends Object
    The time for a scaling action to occur.
    • Constructor Detail

      • Time

        public Time()
    • Method Detail

      • hour

        public int hour()
        Get the hour property: The hour.
        Returns:
        the hour value.
      • withHour

        public Time withHour​(int hour)
        Set the hour property: The hour.
        Parameters:
        hour - the hour value to set.
        Returns:
        the Time object itself.
      • minute

        public int minute()
        Get the minute property: The minute.
        Returns:
        the minute value.
      • withMinute

        public Time withMinute​(int minute)
        Set the minute property: The minute.
        Parameters:
        minute - the minute value to set.
        Returns:
        the Time object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.