com.jakewharton.pingdom.enumerations
Enum CheckType

java.lang.Object
  extended by java.lang.Enum<CheckType>
      extended by com.jakewharton.pingdom.enumerations.CheckType
All Implemented Interfaces:
PingdomEnumeration, Serializable, Comparable<CheckType>

public enum CheckType
extends Enum<CheckType>
implements PingdomEnumeration

Represents a Pingdom check type enumeration.


Enum Constant Summary
Dns
           
Http
           
HttpCustom
           
Imap
           
Ping
           
Pop3
           
Smtp
           
Tcp
           
Udp
           
 
Method Summary
static CheckType fromValue(String value)
           
 String toString()
           
static CheckType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CheckType[] 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

Http

public static final CheckType Http

HttpCustom

public static final CheckType HttpCustom

Tcp

public static final CheckType Tcp

Ping

public static final CheckType Ping

Dns

public static final CheckType Dns

Udp

public static final CheckType Udp

Smtp

public static final CheckType Smtp

Pop3

public static final CheckType Pop3

Imap

public static final CheckType Imap
Method Detail

values

public static CheckType[] 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 (CheckType c : CheckType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CheckType 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<CheckType>

fromValue

public static CheckType fromValue(String value)


Copyright © 2011 Jake Wharton. All Rights Reserved.