public final class LazyResourceList extends Object implements IResourceList
Constructor and Description |
---|
LazyResourceList(RidList list,
IResourceContext context) |
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) |
IResourceList |
union(IResourceList list)
Get the union of this list and the given list.
|
public LazyResourceList(RidList list, IResourceContext context)
public boolean add(IResource resource)
IResourceList
add
in interface IResourceList
resource
- The resource to add to the list.public void add(int index, IResource resource)
IResourceList
add
in interface IResourceList
index
- at which the specified resource is to be inserted.resource
- element to be inserted.public boolean addAll(IResourceList list)
IResourceList
addAll
in interface IResourceList
list
- The list whose elements are to be added to this list.public boolean containsResource(IResource resource)
IResourceList
containsResource
in interface IResourceList
resource
- TBD: Description of the incoming method parameterpublic IResourceList difference(IResourceList list)
IResourceList
difference
in interface IResourceList
list
- the IResourceList
to subtract from this list.IResourceList
with the difference list.public IResource get(int index)
IResourceList
get
in interface IResourceList
index
- of the resource to return.null
. This state is cached within this
instance so subsequent calls to this method will return null
as
well, regardless if the resource would be instantiable or not.public int indexOf(IResource resource)
IResourceList
indexOf
in interface IResourceList
resource
- resource to search for.public IResourceList intersection(IResourceList list)
IResourceList
intersection
in interface IResourceList
list
- the IResourceList
to intersect with this list.IResourceList
with the intersection list.public int lastIndexOf(IResource resource)
IResourceList
lastIndexOf
in interface IResourceList
resource
- resource to search for.public IResourceListIterator listIterator()
IResourceList
listIterator
in interface IResourceList
public IResourceListIterator listIterator(int index)
IResourceList
listIterator
in interface IResourceList
index
- index of first element to be returned from the list-iterator
(by a call to next).public boolean remove(IResource resource)
IResourceList
remove
in interface IResourceList
resource
- TBD: Description of the incoming method parameterpublic IResource remove(int index)
IResourceList
remove
in interface IResourceList
index
- the index of the resource to removed.public IResource set(int index, IResource resource)
IResourceList
set
in interface IResourceList
index
- index of resource to replace.resource
- resource to be stored at the specified position.public int size()
IResourceList
size
in interface IResourceList
public void sort(Comparator comp)
IResourceList
sort
in interface IResourceList
comp
- The comparator used for sortingComparator
public IResourceList subList(int index1, int index2)
subList
in interface IResourceList
index1
- TBD: Description of the incoming method parameterindex2
- TBD: Description of the incoming method parameterAbstractList.subList(int, int)
public IResourceList union(IResourceList list)
IResourceList
union
in interface IResourceList
list
- the IResourceList
to union with this list.IResourceList
with the union list.Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com]
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice