org.codeforamerica.open311.facade.data
Enum Service.Type
java.lang.Object
java.lang.Enum<Service.Type>
org.codeforamerica.open311.facade.data.Service.Type
- All Implemented Interfaces:
- Serializable, Comparable<Service.Type>
- Enclosing class:
- Service
public static enum Service.Type
- extends Enum<Service.Type>
Different types of Service.
REALTIME
public static final Service.Type REALTIME
BATCH
public static final Service.Type BATCH
BLACKBOX
public static final Service.Type BLACKBOX
values
public static Service.Type[] 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 (Service.Type c : Service.Type.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Service.Type 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
getFromString
public static Service.Type getFromString(String type)
- Returns an instance of this class from a given string.
- Parameters:
type
-
- Returns:
null
if the string is not one of the contained
types.
Copyright © 2013 Code for America. All Rights Reserved.