public enum SamplingRate extends Enum<SamplingRate>
Enum Constant and Description |
---|
HIGH
96 KHz
|
LOW
44.1 KHz
|
MEDIUM
48 KHz
|
Modifier and Type | Method and Description |
---|---|
int |
getFrequency() |
static SamplingRate |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SamplingRate[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SamplingRate LOW
public static final SamplingRate MEDIUM
public static final SamplingRate HIGH
public static SamplingRate[] values()
for (SamplingRate c : SamplingRate.values()) System.out.println(c);
public static SamplingRate 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 getFrequency()
Copyright © 2018 Ken Händel. All rights reserved.