|
SAP NetWeaver 7.30 (SP05) KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IList
It is planned to extend this interface to implement type-safe
lists.
In this interface, all methods from the java.util.list
interface that are type-independent are collected.
The IList interface may be extended in order to add
methods for type-safe handling of list elements.
| Method Summary | |
|---|---|
void |
clear()
Removes all of the elements from this list (optional operation). |
boolean |
contains(Object o)
Returns true if this list contains the specified element. |
boolean |
containsAll(Collection c)
Returns true if this list contains all of the elements of the specified collection |
boolean |
equals(Object o)
Compares the specified object with this list for parity. |
int |
hashCode()
Returns the hash code value for this list. |
int |
indexOf(Object o)
Returns the index in this list of the first occurrence of the specified element, or -1 if this list does not contain this element. |
boolean |
isEmpty()
Returns true if this list contains no elements |
int |
lastIndexOf(Object o)
Returns the index in this list of the last occurrence of the specified element, or -1 if this list does not contain this element. |
boolean |
remove(Object o)
Removes the first occurrence in this list of the specified element (optional operation). |
boolean |
removeAll(Collection c)
Removes from this list all the elements that are contained in the specified collection (optional operation) |
boolean |
retainAll(Collection c)
Retains only the elements in this list that are contained in the specified collection (optional operation). |
int |
size()
Returns the number of elements in this list. |
| Method Detail |
|---|
boolean isEmpty()
int size()
boolean contains(Object o)
o - element whose presence in this list is to be tested
boolean remove(Object o)
o - element to be removed from this list, if present
UnsupportedOperationException - if the remove method is not supported by this listboolean containsAll(Collection c)
c - collection to be checked for containment in this list
contains(Object)boolean removeAll(Collection c)
c - collection that defines which elements are to be removed from this list
UnsupportedOperationException - if the removeAll method is not supported by this listremove(Object),
contains(Object)boolean retainAll(Collection c)
c - collection that defines which elements this set is to retain
UnsupportedOperationException - if the retainAll method is not supported by this listremove(Object),
contains(Object)void clear()
UnsupportedOperationException - if the clear method is not supported by this listboolean equals(Object o)
equals in class Objecto - the object to be compared for parity with this list
int hashCode()
hashCode = 1;
Iterator i = list.iterator();
while (i.hasNext()) {
Object obj = i.next();
hashCode = 31*hashCode + (obj==null ? 0 : obj.hashCode());
}
This ensures that list1.equals(list2) implies that list1.hashCode()==list2.hashCode() for
any two lists, list1 and list2 , as required by the general contract of Object.hashCode
.
hashCode in class Objectequals(Object)int indexOf(Object o)
o - element to search for
int lastIndexOf(Object o)
o - element to search for
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
|
SAP NetWeaver 7.30 (SP05) KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||