|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A typed list of IResource instances.
Copyright (c) SAP Portals Europe GmbH 2001
| Method Summary | |
void |
add(int index,
IResource resource)
Inserts the specified resource at the specified position in this list. |
boolean |
add(IResource resource)
Add the resource to the list. |
boolean |
addAll(IResourceList list)
Add all the elements in the specified list to this list. |
boolean |
containsResource(IResource resource)
Returns true if the specified resource is a member of the list. |
IResourceList |
difference(IResourceList 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 . |
IResource |
get(int index)
Returns the resource at the specified position. |
int |
indexOf(IResource resource)
Returns the index in this list of the first occurrence of the specified resource, or -1 if the List does not contain this resource. |
IResourceList |
intersection(IResourceList list)
Get the intersection of this list and the given list. Given a , b and c in this list; b , c and d in the given list, the result will contain b and c . |
int |
lastIndexOf(IResource resource)
Returns the index in this list of the last occurrence of the specified resource, or -1 if the List does not contain this resource. |
com.sapportals.wcm.repository.IResourceListIterator |
listIterator()
Returns a resource-list-iterator of the elements in this list. |
com.sapportals.wcm.repository.IResourceListIterator |
listIterator(int index)
Returns a list-iterator of the elements in this list, starting at the specified position in the list. |
IResource |
remove(int index)
Removes the resource at the specified position in this list. |
boolean |
remove(IResource resource)
Removes the first occurence of the specified resource from the list. |
IResource |
set(int index,
IResource resource)
Replaces the element at the specified position in this list with the specified resource. |
int |
size()
Returns the size of the list. |
void |
sort(java.util.Comparator comp)
Sort the elements in the list using the specified comparator |
IResourceList |
subList(int index1,
int index2)
|
IResourceList |
union(IResourceList list)
Get the union of this list and the given list. Given a , b and c in this list; b , c and d in the given list, the result will contain a , b , c and d . |
| Method Detail |
public void add(int index,
IResource resource)
index - at which the specified resource is to be inserted.resource - element to be inserted.public boolean add(IResource resource)
resource - The resource to add to the list.public boolean addAll(IResourceList list)
list - The list whose elements are to be added to this list.public boolean containsResource(IResource resource)
resource - TBD: Description of the incoming method parameterpublic IResourceList difference(IResourceList list)
list - the IResourceList to subtract from this list.IResourceList with the difference list.public IResource get(int index)
index - of the resource to return.public int indexOf(IResource resource)
resource - resource to search for.public IResourceList intersection(IResourceList list)
list - the IResourceList to intersect with this list.IResourceList with the intersection list.public int lastIndexOf(IResource resource)
resource - resource to search for.public com.sapportals.wcm.repository.IResourceListIterator listIterator()
public com.sapportals.wcm.repository.IResourceListIterator listIterator(int index)
index - index of first element to be returned from the list-iterator
(by a call to next).public IResource remove(int index)
index - the index of the resource to removed.public boolean remove(IResource resource)
resource - TBD: Description of the incoming method parameter
public IResource set(int index,
IResource resource)
index - index of resource to replace.resource - resource to be stored at the specified position.public int size()
public void sort(java.util.Comparator comp)
comp - The comparator used for sortingComparator
public IResourceList subList(int index1,
int index2)
index1 - TBD: Description of the incoming method parameterindex2 - TBD: Description of the incoming method parameterAbstractList.subList(int, int)public IResourceList union(IResourceList list)
list - the IResourceList to union with this list.IResourceList with the union list.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||