com.jakewharton.domainr.enumerations
Enum Availability

java.lang.Object
  extended by java.lang.Enum<Availability>
      extended by com.jakewharton.domainr.enumerations.Availability
All Implemented Interfaces:
DomainrEnumeration, Serializable, Comparable<Availability>

public enum Availability
extends Enum<Availability>
implements DomainrEnumeration

Represents domain availability.


Enum Constant Summary
Available
           
Maybe
           
Taken
           
TLD
           
 
Method Summary
static Availability fromValue(String value)
           
 String toString()
           
static Availability valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Availability[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Taken

public static final Availability Taken

Available

public static final Availability Available

Maybe

public static final Availability Maybe

TLD

public static final Availability TLD
Method Detail

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.