de.Android_Seminar.backend
Enum SampleRate
java.lang.Object
java.lang.Enum<SampleRate>
de.Android_Seminar.backend.SampleRate
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<SampleRate>
public enum SampleRate
- extends java.lang.Enum<SampleRate>
An enum for the different sample rates the sensors could have.
The faster the sample rate the more data will be recorded in 1 second.
The real sample rate for a specific determined sample rate (like FAST)
can vary a bit and depends on the underlying Android platform
- Author:
- jonas
Method Summary |
static SampleRate |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SampleRate[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
FASTEST
public static final SampleRate FASTEST
FAST
public static final SampleRate FAST
NORMAL
public static final SampleRate NORMAL
SLOW
public static final SampleRate SLOW
values
public static SampleRate[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (SampleRate c : SampleRate.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static SampleRate valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null