Enum CarbonExtension.Direction
- java.lang.Object
-
- java.lang.Enum<CarbonExtension.Direction>
-
- org.jivesoftware.smackx.carbons.packet.CarbonExtension.Direction
-
- All Implemented Interfaces:
Serializable
,Comparable<CarbonExtension.Direction>
- Enclosing class:
- CarbonExtension
public static enum CarbonExtension.Direction extends Enum<CarbonExtension.Direction>
Defines the direction of aCarbonExtension
message.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CarbonExtension.Direction
valueOf(String name)
Returns the enum constant of this type with the specified name.static CarbonExtension.Direction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
received
public static final CarbonExtension.Direction received
-
sent
public static final CarbonExtension.Direction sent
-
-
Method Detail
-
values
public static CarbonExtension.Direction[] 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 (CarbonExtension.Direction c : CarbonExtension.Direction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CarbonExtension.Direction 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 nameNullPointerException
- if the argument is null
-
-