public enum PrettyLength extends Enum<PrettyLength>
Modifier and Type | Method and Description |
---|---|
String |
getMinutes() |
String |
getSeconds() |
static PrettyLength |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PrettyLength[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrettyLength SHORT
public static final PrettyLength MEDIUM
public static final PrettyLength LONG
public static PrettyLength[] values()
for (PrettyLength c : PrettyLength.values()) System.out.println(c);
public static PrettyLength 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 null@NotNull public String getMinutes()
@NotNull public String getSeconds()
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.