net.i2p.update
Enum UpdateMethod

java.lang.Object
  extended by java.lang.Enum<UpdateMethod>
      extended by 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

Enum Constant Summary
DEBIAN
           
FILE
           
GNUTELLA
           
HTTP
           
HTTP_CLEARNET
           
HTTPS_CLEARNET
           
IMULE
           
METHOD_DUMMY
           
TAHOE_LAFS
           
TORRENT
           
 
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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