Enum PNSortKey.Key
- java.lang.Object
-
- java.lang.Enum<PNSortKey.Key>
-
- com.pubnub.api.endpoints.objects_api.utils.PNSortKey.Key
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PNSortKey.Key>
- Enclosing class:
- PNSortKey
public static enum PNSortKey.Key extends java.lang.Enum<PNSortKey.Key>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PNSortKey.Key
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PNSortKey.Key[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ID
public static final PNSortKey.Key ID
-
NAME
public static final PNSortKey.Key NAME
-
UPDATED
public static final PNSortKey.Key UPDATED
-
-
Method Detail
-
values
public static PNSortKey.Key[] 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 (PNSortKey.Key c : PNSortKey.Key.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PNSortKey.Key valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-