|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A typed list for IRelation s.
| Method Summary | |
void |
add(int index,
IRelation relation)
Insert the specified relation at the specified position in this list. |
boolean |
add(IRelation relation)
Add a relation to the list. |
boolean |
addAll(IRelationList list)
Add all the elements in the specified list to this list. |
boolean |
contains(IRelation relation)
Check if the specified relation is in the list. |
IRelationList |
difference(IRelationList list)
Get the difference of this list to the given list. Given a , b and c in this list; b , c and d in the given list, the result will contain only a . |
IRelation |
get(int index)
Return the relation at the specified position. |
java.util.Collection |
getCollection()
Return this typed list as an standard java collection. |
int |
indexOf(IRelation relation)
Return the index of the first occurrence of the specified relation in this list, or -1 if the list does not contain the relation. |
IRelationList |
intersection(IRelationList list)
Get the intersection of this list and the given list. |
int |
lastIndexOf(IRelation relation)
Return the index of the last occurrence of the specified relation in this list, or -1 if the list does not contain the relation. |
IRelationListIterator |
listIterator()
Return an iterator for the elements in this list. |
IRelationListIterator |
listIterator(int index)
Return an iterator for the elements in this list which starts at the specified position in the list. |
IRelation |
remove(int index)
Remove the relation at the specified position in this list. |
boolean |
remove(IRelation relation)
Remove the first occurence of the specified relation from the list. |
IRelation |
set(int index,
IRelation relation)
Replace the element at the specified position in this list with the specified relation. |
int |
size()
Return the number of entries in the list. |
void |
sort(java.util.Comparator comparator)
Sort the elements in the list using the specified comparator. |
IRelationList |
subList(int startIndex,
int stopIndex)
Return a list of elements from this list which starts at the first specified position in the list and end at the second specified position. |
IRelationList |
union(IRelationList list)
Get the union of this list and the given list. |
| Method Detail |
public java.util.Collection getCollection()
Collection representing this typed list.public int size()
int with the size of the list.public boolean contains(IRelation relation)
relation - TBD: Description of the incoming method parameterboolean true m if the specified
relation is in the list.public boolean add(IRelation relation)
relation - the IRelation to add to the list.boolean true , if the specified
relation was added, false if it's already in the list.public boolean addAll(IRelationList list)
list - the IRelationList with the elements to be added to
this list.boolean true , if the list was changed,
false if no element was added to the list at all.public boolean remove(IRelation relation)
relation - TBD: Description of the incoming method parameterboolean true , if the specified
relation was contained in the list and removed, false if
the list was not changed.public IRelation get(int index)
index - an int with the position of the desired relation.IRelation with the relation at the specified
position.
public IRelation set(int index,
IRelation relation)
index - an int with the position of the relation to
replace.relation - the IRelation to be stored at the specified
position.IRelation with the old element that was at the
specified position before replacement.
public void add(int index,
IRelation relation)
index - an int with the position of the relation to be
inserted.relation - the IRelation to be inserted at the specified
position.public IRelation remove(int index)
index - an int with the position of the relation to
remove.IRelation with the removed element.public int indexOf(IRelation relation)
-1 if the list does not contain the relation.relation - the IRelation to search for.int with the index of the first occurrence of the
specified relation, or -1 if the list does not contain
the given relation.public int lastIndexOf(IRelation relation)
-1 if the list does not contain the relation.relation - the IRelation to search for.int with the index of the last occurrence of the
specified relation, or -1 if the list does not contain
the given relation.public IRelationListIterator listIterator()
IRelationListIterator for the elements in this list.public IRelationListIterator listIterator(int index)
index - an int with the index to start the iterator at.IRelationListIterator for the elements in this list.
public IRelationList subList(int startIndex,
int stopIndex)
startIndex - an int with the index to start the sub list
at.stopIndex - an int with the index to stop the sub list
at.IRelationList with the elements of the sub-list.public void sort(java.util.Comparator comparator)
comparator - the Comparator to be used for sorting.public IRelationList union(IRelationList list)
addAll() duplicates
will be removed.list - the IRelationList to union with this list.IRelationList with the union list.public IRelationList intersection(IRelationList list)
list - the IRelationList to intersect with this list.IRelationList with the intersection list.public IRelationList difference(IRelationList list)
list - the IRelationList to subtract from this list.IRelationList with the difference list.
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||