public enum Tone extends Enum<Tone>
| Enum Constant and Description |
|---|
FALLING |
FALLING_RISING |
LEVEL |
RISING |
SOFT |
| Modifier and Type | Method and Description |
|---|---|
int |
getId() |
static Tone |
valueOf(int id) |
static Tone |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Tone[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Tone SOFT
public static final Tone LEVEL
public static final Tone RISING
public static final Tone FALLING_RISING
public static final Tone FALLING
public static Tone[] values()
for (Tone c : Tone.values()) System.out.println(c);
public static Tone 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 getId()
public static Tone valueOf(int id)
Copyright © 2022. All rights reserved.