net.tomp2p.message
Enum Message.Content

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

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


Enum Constant Summary
CHANNEL_BUFFER
           
EMPTY
           
INTEGER
           
KEY
           
KEY_KEY
           
LONG
           
MAP_KEY_COMPARE_DATA
           
MAP_KEY_DATA
           
MAP_KEY_KEY
           
PUBLIC_KEY
           
PUBLIC_KEY_SIGNATURE
           
RESERVED1
           
RESERVED2
           
SET_KEYS
           
SET_NEIGHBORS
           
SET_TRACKER_DATA
           
 
Method Summary
static Message.Content valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Message.Content[] 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

EMPTY

public static final Message.Content EMPTY

KEY

public static final Message.Content KEY

KEY_KEY

public static final Message.Content KEY_KEY

MAP_KEY_DATA

public static final Message.Content MAP_KEY_DATA

MAP_KEY_COMPARE_DATA

public static final Message.Content MAP_KEY_COMPARE_DATA

MAP_KEY_KEY

public static final Message.Content MAP_KEY_KEY

SET_KEYS

public static final Message.Content SET_KEYS

SET_NEIGHBORS

public static final Message.Content SET_NEIGHBORS

CHANNEL_BUFFER

public static final Message.Content CHANNEL_BUFFER

LONG

public static final Message.Content LONG

INTEGER

public static final Message.Content INTEGER

PUBLIC_KEY_SIGNATURE

public static final Message.Content PUBLIC_KEY_SIGNATURE

PUBLIC_KEY

public static final Message.Content PUBLIC_KEY

SET_TRACKER_DATA

public static final Message.Content SET_TRACKER_DATA

RESERVED1

public static final Message.Content RESERVED1

RESERVED2

public static final Message.Content RESERVED2
Method Detail

values

public static Message.Content[] 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.Content c : Message.Content.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.Content 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 © 2012. All Rights Reserved.