public class ResourceList extends Object implements IResourceList
IResourceList interface.
Copyright (c) SAP AG 2001-2004
IResourceList| Constructor and Description |
|---|
ResourceList()
Constructs a new empty resource list.
|
ResourceList(ResourceList resourceList)
Construct a new resource list containing the elements of the specified list
in the same order.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
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.
|
IResourceListIterator |
listIterator()
Returns a resource-list-iterator of the elements in this list.
|
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(Comparator comp)
Sort the elements in the list using the specified comparator
|
IResourceList |
subList(int index1,
int index2) |
String |
toString() |
IResourceList |
union(IResourceList list)
Get the union of this list and the given list.
|
public ResourceList(ResourceList resourceList)
resourceList - public ResourceList()
public int size()
IResourceListsize in interface IResourceListpublic boolean containsResource(IResource resource)
IResourceListcontainsResource in interface IResourceListresource - TBD: Description of the incoming method parameterpublic boolean add(IResource resource)
IResourceListadd in interface IResourceListresource - The resource to add to the list.public boolean addAll(IResourceList list)
IResourceListaddAll in interface IResourceListlist - The list whose elements are to be added to this list.public boolean remove(IResource resource)
IResourceListremove in interface IResourceListresource - TBD: Description of the incoming method parameterpublic IResource get(int index)
IResourceListget in interface IResourceListindex - of the resource to return.public IResource set(int index, IResource resource)
IResourceListset in interface IResourceListindex - index of resource to replace.resource - resource to be stored at the specified position.public void add(int index,
IResource resource)
IResourceListadd in interface IResourceListindex - at which the specified resource is to be inserted.resource - element to be inserted.public IResource remove(int index)
IResourceListremove in interface IResourceListindex - the index of the resource to removed.public int indexOf(IResource resource)
IResourceListindexOf in interface IResourceListresource - resource to search for.public int lastIndexOf(IResource resource)
IResourceListlastIndexOf in interface IResourceListresource - resource to search for.public IResourceListIterator listIterator()
IResourceListlistIterator in interface IResourceListpublic IResourceListIterator listIterator(int index)
IResourceListlistIterator in interface IResourceListindex - index of first element to be returned from the list-iterator
(by a call to next).public IResourceList subList(int index1, int index2)
subList in interface IResourceListindex1 - TBD: Description of the incoming method parameterindex2 - TBD: Description of the incoming method parameterAbstractList.subList(int, int)public void sort(Comparator comp)
IResourceListsort in interface IResourceListcomp - The comparator used for sortingComparatorpublic IResourceList union(IResourceList list)
IResourceListunion in interface IResourceListlist - the IResourceList to union with this list.IResourceList with the union list.public IResourceList intersection(IResourceList list)
IResourceListintersection in interface IResourceListlist - the IResourceList to intersect with this list.IResourceList with the intersection list.public IResourceList difference(IResourceList list)
IResourceListdifference in interface IResourceListlist - the IResourceList to subtract from this list.IResourceList with the difference list.| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice