net.tomp2p.message
Enum Message.Command

java.lang.Object
  extended by java.lang.Enum<Message.Command>
      extended by net.tomp2p.message.Message.Command
All Implemented Interfaces:
Serializable, Comparable<Message.Command>
Enclosing class:
Message

public static enum Message.Command
extends Enum<Message.Command>


Enum Constant Summary
ADD
           
BROADCAST_DATA
           
COMPARE_PUT
           
DIRECT_DATA
           
GET
           
NEIGHBORS
           
PEX
           
PING
           
PUT
           
QUIT
           
REMOVE
           
TASK
           
TRACKER_ADD
           
TRACKER_GET
           
USER1
           
USER2
           
 
Method Summary
static Message.Command valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Message.Command[] 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

PING

public static final Message.Command PING

PUT

public static final Message.Command PUT

COMPARE_PUT

public static final Message.Command COMPARE_PUT

GET

public static final Message.Command GET

ADD

public static final Message.Command ADD

REMOVE

public static final Message.Command REMOVE

NEIGHBORS

public static final Message.Command NEIGHBORS

QUIT

public static final Message.Command QUIT

DIRECT_DATA

public static final Message.Command DIRECT_DATA

TRACKER_ADD

public static final Message.Command TRACKER_ADD

TRACKER_GET

public static final Message.Command TRACKER_GET

PEX

public static final Message.Command PEX

TASK

public static final Message.Command TASK

BROADCAST_DATA

public static final Message.Command BROADCAST_DATA

USER1

public static final Message.Command USER1

USER2

public static final Message.Command USER2
Method Detail

values

public static Message.Command[] 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 (Message.Command c : Message.Command.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Message.Command 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


Copyright © 2013. All Rights Reserved.