edu.nrao.sss.model.resource
Enum BackendType
java.lang.Object
java.lang.Enum<BackendType>
edu.nrao.sss.model.resource.BackendType
- All Implemented Interfaces:
- Serializable, Comparable<BackendType>
public enum BackendType
- extends Enum<BackendType>
Types of telescope backends.
Version Info:
$Revision: 1175 $ |
$Date: 2008-03-20 09:42:39 -0600 (Thu, 20 Mar 2008) $ |
$Author: dharland $ (last person to modify) |
- Since:
- 2008-03-19
- Author:
- David M. Harland
Method Summary |
static BackendType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static BackendType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
CORRELATOR
public static final BackendType CORRELATOR
SPECTROMETER
public static final BackendType SPECTROMETER
values
public static BackendType[] 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 (BackendType c : BackendType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static BackendType 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 © 2009. All Rights Reserved.