public class PrincipalSearchSortType
extends java.lang.Object
implements java.io.Serializable
Realm.findUsers
and Realm.findGroups
.Modifier and Type | Field and Description |
---|---|
static PrincipalSearchSortType |
ASCENDING
A constant representing a PrincipalSearchSortType instance of type ASCENDING.
|
static int |
ASCENDING_AS_INT
An integer associated with the ASCENDING instance of this class.
|
static PrincipalSearchSortType |
DESCENDING
A constant representing a PrincipalSearchSortType instance of type DESCENDING.
|
static int |
DESCENDING_AS_INT
An integer associated with the DESCENDING instance of this class.
|
static PrincipalSearchSortType |
NONE
A constant representing a PrincipalSearchSortType instance of type NONE.
|
static int |
NONE_AS_INT
An integer associated with the NONE instance of this class.
|
Modifier and Type | Method and Description |
---|---|
static PrincipalSearchSortType |
getInstanceFromInt(int value)
Gets the instance of this class using its associated integer value (the *_AS_INT fields).
|
int |
getValue()
Returns an integer value associated with a specific instance of this class.
|
java.lang.String |
toString()
Returns a String representation of this instance.
|
public static final int NONE_AS_INT
Use the static instances of this class, rather than the associated integer values. The integer values risk binary incompatibility (but not source incompatibility) across product releases.
public static final PrincipalSearchSortType NONE
getValue()
,
getInstanceFromInt(int)
public static final int ASCENDING_AS_INT
Use the static instances of this class, rather than the associated integer values. The integer values risk binary incompatibility (but not source incompatibility) across product releases.
public static final PrincipalSearchSortType ASCENDING
getValue()
,
getInstanceFromInt(int)
public static final int DESCENDING_AS_INT
Use the static instances of this class, rather than the associated integer values. The integer values risk binary incompatibility (but not source incompatibility) across product releases.
public static final PrincipalSearchSortType DESCENDING
getValue()
,
getInstanceFromInt(int)
public int getValue()
public static PrincipalSearchSortType getInstanceFromInt(int value)
value
- An integer representing a particular static instance of this class.EngineRuntimeException
- Thrown when the parameter is null or invalid.public java.lang.String toString()
toString
in class java.lang.Object
© Copyright IBM Corporation 2006, 2015. All rights reserved.