public enum MomentEnum extends Enum<MomentEnum>
Enum Constant and Description |
---|
afternoon |
day_break |
early_morning |
lateNight |
midNight |
morning |
night |
noon |
Modifier and Type | Method and Description |
---|---|
int |
getHourTime() |
static MomentEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MomentEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MomentEnum day_break
public static final MomentEnum early_morning
public static final MomentEnum morning
public static final MomentEnum noon
public static final MomentEnum afternoon
public static final MomentEnum night
public static final MomentEnum lateNight
public static final MomentEnum midNight
public static MomentEnum[] values()
for (MomentEnum c : MomentEnum.values()) System.out.println(c);
public static MomentEnum valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getHourTime()
Copyright © 2021. All rights reserved.