com.jakewharton.pingdom.enumerations
Enum CheckType
java.lang.Object
java.lang.Enum<CheckType>
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.
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
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.