com.jakewharton.domainr.enumerations
Enum Availability
java.lang.Object
java.lang.Enum<Availability>
com.jakewharton.domainr.enumerations.Availability
- All Implemented Interfaces:
- DomainrEnumeration, Serializable, Comparable<Availability>
public enum Availability
- extends Enum<Availability>
- implements DomainrEnumeration
Represents domain availability.
Taken
public static final Availability Taken
Available
public static final Availability Available
Maybe
public static final Availability Maybe
TLD
public static final Availability TLD
values
public static Availability[] 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 (Availability c : Availability.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Availability 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
toString
public String toString()
- Overrides:
toString
in class Enum<Availability>
fromValue
public static Availability fromValue(String value)
Copyright © 2011 Jake Wharton. All Rights Reserved.