|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A list of IDiscussionItem objects. Declares all expected list operations,
such as add(), get(), remove(), set(), size() etc.
Note that this
implementation is not synchronized. If multiple threads access a list
concurrently, and at least one of the threads modifies the list structurally,
it must be synchronized externally. (A structural modification is any
operation that adds or deletes one or more elements. Merely setting
the value of an element is not a structural modification.)
| Method Summary | |
boolean |
add(IDiscussionItem discussionItem)
Appends the specified discussion item to the end of this list. |
void |
add(int index,
IDiscussionItem discussionItem)
Inserts the specified discussion item at the specified position in this list. |
boolean |
containsDiscussionItem(IDiscussionItem discussionItem)
Returns true if this list contains the specified element. |
IDiscussionItem |
get(int index)
Gets the discussion item at the specified position in this list. |
int |
getPageNumber()
Gets the pageNumber of a sublist to the entire list. |
int |
getStartIndex()
Gets the startIndex of a sublist to the entire list. |
int |
getTotalNumber()
Gets the number of discussion items of a superlist. |
int |
indexOf(IDiscussionItem discussionItem)
Returns the index in this list of the first occurrence of the specified discussion item element, or -1 if the list does not contain this discussion item. |
int |
indexOf(RID itemRid)
Returns the index in this list of the first occurrence of the specified discussion item element, or -1 if the list does not contain this discussion item. |
int |
lastIndexOf(IDiscussionItem discussionItem)
Gets the index in this list of the last occurrence of the specified discussion item, or -1 if the list does not contain this discussion item. |
IDiscussionItemListIterator |
listIterator()
Gets an IDiscussionItemListIterator of the discussion items
in this list (in proper sequence).
|
IDiscussionItemListIterator |
listIterator(int index)
Returns an IDiscussionItemListIterator of the discussion items
in this list (in proper sequence), starting at the specified position in the list.
|
boolean |
remove(IDiscussionItem discussionItem)
Removes the first occurrence of the specified discussion item in this list. |
IDiscussionItem |
remove(int index)
Removes the discussion item at the specified position in this list. |
IDiscussionItem |
set(int index,
IDiscussionItem discussionItem)
Sets the discussion item at the specified position in this list with the specified discussion item . |
void |
setPageNumber(int index)
Sets the pageNumber of a sublist to the entire list. |
void |
setStartIndex(int index)
Sets the startIndex of a sublist to the entire list. |
void |
setTotalNumber(int number)
Sets the number of discussion items of a superlist. |
int |
size()
Returns the number of IDiscussionItems in this list. |
void |
sort(java.util.Comparator comp)
Sorts this IDiscussionItemList according to the order
induced by the specified comparator. |
IDiscussionItemList |
subList(int index1,
int index2)
Returns an IDiscussionItemList with discussion items between index1, inclusive,
and index2, exclusive. |
| Method Detail |
public int size()
IDiscussionItems in this list.public boolean containsDiscussionItem(IDiscussionItem discussionItem)
discussionItem - the element whose presence in this list is to be tested.true, if this list contains the specified elementpublic boolean add(IDiscussionItem discussionItem)
discussionItem - element to be appended to this listtrue (as per the general contract of Collection.add)public boolean remove(IDiscussionItem discussionItem)
discussionItem - element to be removed from this list, if presenttrue, if the list contained the specified elementpublic IDiscussionItem get(int index)
index - index of discussion item to returnIndexOutOfBoundException - if the specified index is out of range (index < 0 || index >= size())
public IDiscussionItem set(int index,
IDiscussionItem discussionItem)
index - index of discussion item to replacediscussionItem - discussion item to be stored at the specified positionpublic void setStartIndex(int index)
public int getStartIndex()
public void setPageNumber(int index)
public int getPageNumber()
public int getTotalNumber()
public void setTotalNumber(int number)
public void add(int index,
IDiscussionItem discussionItem)
index - index at which the specified discussion item is to be inserteddiscussionItem - discussion item to be insertedjava.lang.IndexOutOfBoundsException - if the specified index is out of range (index < 0 || index > size())public IDiscussionItem remove(int index)
index - the index of the discussion item to removedpublic int indexOf(RID itemRid)
itemRid - discussion item to search forpublic int indexOf(IDiscussionItem discussionItem)
discussionItem - discussion item to search forpublic int lastIndexOf(IDiscussionItem discussionItem)
discussionItem - discussion item to search forpublic IDiscussionItemListIterator listIterator()
IDiscussionItemListIterator of the discussion items
in this list (in proper sequence).
Obeys the general contract of List.listIterator(int).
The list iterator is fail-fast: if the list
is structurally modified at any time after the iterator is created, in
any way other than using the list iterator's own remove or add methods,
the list iterator throws a ConcurrentModificationException. Thus,
in the face of concurrent modification, the iterator fails quickly and
cleanly, rather than risking arbitrary, non-deterministic behavior at an
undetermined time in the future.public IDiscussionItemListIterator listIterator(int index)
IDiscussionItemListIterator of the discussion items
in this list (in proper sequence), starting at the specified position in the list.
Obeys the general contract of List.listIterator(int).
The list iterator is fail-fast: if the list
is structurally modified at any time after the iterator is created, in
any way other than using the list iterator's own remove or add methods,
the list iterator throws a ConcurrentModificationException. Thus,
in the face of concurrent modification, the iterator fails quickly and
cleanly, rather than risking arbitrary, non-deterministic behavior at an
undetermined time in the future.index - index of first discussion item to be returned from the list iterator
public IDiscussionItemList subList(int index1,
int index2)
IDiscussionItemList with discussion items between index1, inclusive,
and index2, exclusive. (If index1 and index2 are equal, the returned
list is empty.) The returned list is backed by this list, so changes in
the returned list are reflected in this list, and vice versa. The returned
list supports all of the optional list operations supported by this list.index1 - low endpoint (inclusive) of the subListindex2 - high endpoint (exclusive) of the subListIDiscussionItemList with discussion items between index1 and index2public void sort(java.util.Comparator comp)
IDiscussionItemList according to the order
induced by the specified comparator.comp - the comparator to determine the order of the list
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||