java.lang.Object
java.lang.Enum<MilliTime>
org.eco.mubisoft.good_and_cheap.application.data.MilliTime
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MilliTime>, java.lang.constant.Constable

public enum MilliTime
extends java.lang.Enum<MilliTime>

Time in milliseconds

Enum that contains different time values in milliseconds.

  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant Description
    FIFTEEN_MINUTES  
    FIVE_MINUTES  
    ONE_HOUR  
    TEN_MINUTES  
    THIRTY_MINUTES  
  • Field Summary

    Fields
    Modifier and Type Field Description
    int time
    Time in milliseconds.
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    private MilliTime​(int time)
    Create a new instance of a MilliTime enum value.
  • Method Summary

    Modifier and Type Method Description
    static MilliTime valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static MilliTime[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • FIVE_MINUTES

      public static final MilliTime FIVE_MINUTES
    • TEN_MINUTES

      public static final MilliTime TEN_MINUTES
    • FIFTEEN_MINUTES

      public static final MilliTime FIFTEEN_MINUTES
    • THIRTY_MINUTES

      public static final MilliTime THIRTY_MINUTES
    • ONE_HOUR

      public static final MilliTime ONE_HOUR
  • Field Details

    • time

      public int time
      Time in milliseconds.
  • Constructor Details

    • MilliTime

      private MilliTime​(int time)

      Create a new instance of a MilliTime enum value. Set the time in milliseconds of the provided value.

      Parameters:
      time - Time in minutes.
  • Method Details

    • values

      public static MilliTime[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static MilliTime valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null