public static enum I2PSource.Protocol extends Enum<I2PSource.Protocol>
Modifier and Type | Method and Description |
---|---|
static I2PSource.Protocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static I2PSource.Protocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final I2PSource.Protocol REPLIABLE
public static final I2PSource.Protocol RAW
public static final I2PSource.Protocol BOTH
public static I2PSource.Protocol[] values()
for (I2PSource.Protocol c : I2PSource.Protocol.values()) System.out.println(c);
public static I2PSource.Protocol valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null