|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<LimitedRangeRdvMsg.WalkDirection>
net.jxta.impl.protocol.LimitedRangeRdvMsg.WalkDirection
public static enum LimitedRangeRdvMsg.WalkDirection
Enumeration of possible walk directions.
Enum Constant Summary | |
---|---|
BOTH
|
|
DOWN
|
|
UP
|
Method Summary | |
---|---|
int |
toProtocolCode()
Return the protocol code used by the standard walker protocol for this WalkDirection. |
static LimitedRangeRdvMsg.WalkDirection |
toWalkDirection(int code)
Convert a walk code as used by the standard walker protocol to a direction object. |
static LimitedRangeRdvMsg.WalkDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static LimitedRangeRdvMsg.WalkDirection[] |
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 |
---|
public static final LimitedRangeRdvMsg.WalkDirection UP
public static final LimitedRangeRdvMsg.WalkDirection DOWN
public static final LimitedRangeRdvMsg.WalkDirection BOTH
Method Detail |
---|
public static LimitedRangeRdvMsg.WalkDirection[] values()
for (LimitedRangeRdvMsg.WalkDirection c : LimitedRangeRdvMsg.WalkDirection.values()) System.out.println(c);
public static LimitedRangeRdvMsg.WalkDirection valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static LimitedRangeRdvMsg.WalkDirection toWalkDirection(int code)
code
- the protocol code
IllegalArgumentException
- For illegal protocol codes.public int toProtocolCode()
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |