Smack

org.jivesoftware.smack.packet
Enum RosterPacket.ItemType

java.lang.Object
  extended by java.lang.Enum<RosterPacket.ItemType>
      extended by org.jivesoftware.smack.packet.RosterPacket.ItemType
All Implemented Interfaces:
Serializable, Comparable<RosterPacket.ItemType>
Enclosing class:
RosterPacket

public static enum RosterPacket.ItemType
extends Enum<RosterPacket.ItemType>


Enum Constant Summary
both
          The user and subscriber have a mutual interest in each other's presence.
from
          The subscriber is interested in receiving presence updates from the user.
none
          The user and subscriber have no interest in each other's presence.
remove
          The user wishes to stop receiving presence updates from the subscriber.
to
          The user is interested in receiving presence updates from the subscriber.
 
Method Summary
static RosterPacket.ItemType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RosterPacket.ItemType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

none

public static final RosterPacket.ItemType none
The user and subscriber have no interest in each other's presence.


to

public static final RosterPacket.ItemType to
The user is interested in receiving presence updates from the subscriber.


from

public static final RosterPacket.ItemType from
The subscriber is interested in receiving presence updates from the user.


both

public static final RosterPacket.ItemType both
The user and subscriber have a mutual interest in each other's presence.


remove

public static final RosterPacket.ItemType remove
The user wishes to stop receiving presence updates from the subscriber.

Method Detail

values

public static final RosterPacket.ItemType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(RosterPacket.ItemType c : RosterPacket.ItemType.values())
        System.out.println(c);

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

valueOf

public static RosterPacket.ItemType 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

Smack

Copyright © 2003-2007 Jive Software.