Enum MilliTime
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
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
-
TEN_MINUTES
-
FIFTEEN_MINUTES
-
THIRTY_MINUTES
-
ONE_HOUR
-
-
Field Details
-
time
public int timeTime 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
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
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 namejava.lang.NullPointerException
- if the argument is null
-