net.i2p.update
Enum UpdateMethod
java.lang.Object
java.lang.Enum<UpdateMethod>
net.i2p.update.UpdateMethod
- All Implemented Interfaces:
- Serializable, Comparable<UpdateMethod>
public enum UpdateMethod
- extends Enum<UpdateMethod>
Transport mechanism for getting something.
- Since:
- 0.9.4
Method Summary |
static UpdateMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static UpdateMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
METHOD_DUMMY
public static final UpdateMethod METHOD_DUMMY
HTTP
public static final UpdateMethod HTTP
HTTP_CLEARNET
public static final UpdateMethod HTTP_CLEARNET
HTTPS_CLEARNET
public static final UpdateMethod HTTPS_CLEARNET
TORRENT
public static final UpdateMethod TORRENT
GNUTELLA
public static final UpdateMethod GNUTELLA
IMULE
public static final UpdateMethod IMULE
TAHOE_LAFS
public static final UpdateMethod TAHOE_LAFS
DEBIAN
public static final UpdateMethod DEBIAN
FILE
public static final UpdateMethod FILE
values
public static UpdateMethod[] 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 (UpdateMethod c : UpdateMethod.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static UpdateMethod 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