Enum SortResultCode
- All Implemented Interfaces:
Serializable, Comparable<SortResultCode>
Enumeration of the result codes of a SortResult defined in RFC 2891
for server side sort control.
- Author:
- Apache Directory Project
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic SortResultCodeget(int code) returns the enum value representing the given code.intgetVal()static SortResultCodeReturns the enum constant of this type with the specified name.static SortResultCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
-
OPERATIONSERROR
-
TIMELIMITEXCEEDED
-
STRONGAUTHREQUIRED
-
ADMINLIMITEXCEEDED
-
NOSUCHATTRIBUTE
-
INAPPROPRIATEMATCHING
-
INSUFFICIENTACCESSRIGHTS
-
BUSY
-
UNWILLINGTOPERFORM
-
OTHER
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getVal
public int getVal()- Returns:
- The internet value
-
get
returns the enum value representing the given code.- Parameters:
code- the result code- Returns:
- returns the corresponding ResultCode, throws IllegalArgumentException when there is no matching ResultCode exists for the given value.
-