net.jetrix.config
Enum Speed
java.lang.Object
java.lang.Enum<Speed>
net.jetrix.config.Speed
- All Implemented Interfaces:
- Serializable, Comparable<Speed>
public enum Speed
- extends Enum<Speed>
Client speed settings for a channel.
- Since:
- 0.3
- Version:
- $Revision: 860 $, $Date: 2010-05-06 13:21:05 +0200 (jeu., 06 mai 2010) $
- Author:
- Emmanuel Bourg
|
Method Summary |
static Speed |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Speed[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
NORMAL
public static final Speed NORMAL
MIXED
public static final Speed MIXED
FAST
public static final Speed FAST
values
public static Speed[] 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 (Speed c : Speed.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Speed valueOf(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:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
Copyright © 2001-2010. All Rights Reserved.