public enum AudioVolumeUnit extends Enum<AudioVolumeUnit>
Enum Constant and Description |
---|
DB
Change the audio volume in decibels.
|
PERCENT
Change the audio volume in percent, e.g., volume 100 will leave the audio volume unchanged, volume 50 will halve the audio volume.
|
Modifier and Type | Method and Description |
---|---|
static AudioVolumeUnit |
fromValue(String text) |
String |
getValue() |
String |
toString() |
static AudioVolumeUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AudioVolumeUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AudioVolumeUnit PERCENT
public static final AudioVolumeUnit DB
public static AudioVolumeUnit[] values()
for (AudioVolumeUnit c : AudioVolumeUnit.values()) System.out.println(c);
public static AudioVolumeUnit 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 String getValue()
public String toString()
toString
in class Enum<AudioVolumeUnit>
public static AudioVolumeUnit fromValue(String text)
Copyright © 2021. All rights reserved.