Class SortRequestImpl
- java.lang.Object
-
- org.apache.directory.api.ldap.model.message.controls.AbstractControl
-
- org.apache.directory.api.ldap.model.message.controls.SortRequestImpl
-
- All Implemented Interfaces:
Control
,SortRequest
public class SortRequestImpl extends AbstractControl implements SortRequest
Implementation of SortRequestControl.- Author:
- Apache Directory Project
-
-
Field Summary
-
Fields inherited from interface org.apache.directory.api.ldap.model.message.controls.SortRequest
OID
-
-
Constructor Summary
Constructors Constructor Description SortRequestImpl()
Creates a new SortRequestControlImpl instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSortKey(SortKey skey)
adds a sort keyboolean
equals(Object o)
List<SortKey>
getSortKeys()
int
hashCode()
void
setSortKeys(List<SortKey> sortKeys)
sets the sort keysString
toString()
Return a String representing a Control-
Methods inherited from class org.apache.directory.api.ldap.model.message.controls.AbstractControl
getOid, isCritical, setCritical
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Control
getOid, isCritical, setCritical
-
-
-
-
Constructor Detail
-
SortRequestImpl
public SortRequestImpl()
Creates a new SortRequestControlImpl instance
-
-
Method Detail
-
getSortKeys
public List<SortKey> getSortKeys()
- Specified by:
getSortKeys
in interfaceSortRequest
- Returns:
- the sortKeys
-
setSortKeys
public void setSortKeys(List<SortKey> sortKeys)
Description copied from interface:SortRequest
sets the sort keys- Specified by:
setSortKeys
in interfaceSortRequest
- Parameters:
sortKeys
- the sortKeys to set
-
addSortKey
public void addSortKey(SortKey skey)
adds a sort key- Specified by:
addSortKey
in interfaceSortRequest
- Parameters:
skey
- The list of keys to be sorted
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractControl
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classAbstractControl
- See Also:
Object.equals(Object)
-
toString
public String toString()
Return a String representing a Control- Overrides:
toString
in classAbstractControl
-
-