|
SAP NetWeaver 7.4 (SP03) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.tc.cmi.sorting.CMISortCriterion
com.sap.tc.cmi.sorting.CMISortCriteriaList
public final class CMISortCriteriaList
(Complex) sort criterion that consists of a prioritized list of (simpler) SortCriteria.
The contained sort criteria are indexed in descending priority. So ICMISortables have to sort data by the criterion with index 0 first, then by the criterion with index 1 and so on.
This list is immutable, so the existing mutator methods all return a new, modified copy of this list.
Type Classification:
This class is part of the Common Model Interface, so applications may reference it or call any method of this type, but they must not subclass it.
| Field Summary |
|---|
| Fields inherited from class com.sap.tc.cmi.sorting.CMISortCriterion |
|---|
NONE |
| Constructor Summary | |
|---|---|
CMISortCriteriaList(CMISortCriterion[] sortCriteria)
Creates a list of sort criteria from the array sortCriteria where the sort priority
is defined by the index of criteria in the array (the sort criterion with index 0 has highest priority). |
|
| Method Summary | |
|---|---|
CMISortCriteriaList |
add(CMISortCriterion sortCriterion)
Returns a list of sort criteria where the sort criterion given as parameter is added at the end. |
CMISortCriteriaList |
add(int index,
CMISortCriterion sortCriterion)
Returns a list of sort criteria where the sort criterion given as parameter is added at the specified index. |
boolean |
equals(CMISortCriteriaList other)
|
boolean |
equals(Object other)
|
CMISortCriterion |
getCriterion(int index)
Returns the sort criterion with the given index. |
int |
hashCode()
|
CMISortCriteriaList |
remove(int index)
Returns a list of sort criteria where the sort criterion at the specified index is removed. |
int |
size()
Get the number of sort criteria contained in this sort criteria list. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CMISortCriteriaList(CMISortCriterion[] sortCriteria)
sortCriteria where the sort priority
is defined by the index of criteria in the array (the sort criterion with index 0 has highest priority).
sortCriteria - The array of sort criteria.| Method Detail |
|---|
public int size()
public CMISortCriterion getCriterion(int index)
index. If index < 0 or
index > size()-1 an ArrayIndexOutOfBoundsException is thrown.
index - The index of the sort criterion in the list.
public CMISortCriteriaList add(CMISortCriterion sortCriterion)
CMISortCriteriaList is immutable this is a new list; the sort criteria list this method
has been called on is not modified.
sortCriterion - The sort criterion to be added.
public CMISortCriteriaList add(int index,
CMISortCriterion sortCriterion)
CMISortCriteriaList is immutable this is a new list; the sort criteria list this method
has been called on is not modified.
sortCriterion - The sort criterion to be added.
public CMISortCriteriaList remove(int index)
CMISortCriteriaList is immutable this is a new list; the sort criteria list this method
has been called on is not modified.
index - The index where to remove a criterion.
public int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Objectpublic boolean equals(CMISortCriteriaList other)
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] FRAMEWORK
|
[sap.com] tc/cm/ejb/api
|
api
|
BC-JAS-EJB
|
[sap.com] FRAMEWORK
|
[sap.com] tc/cmi
|
default
|
BC-WD-JAV-RUN
|
|
SAP NetWeaver 7.4 (SP03) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||