|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmaspack.util.SubListView<E>
public abstract class SubListView<E>
Constructor Summary | |
---|---|
SubListView(ListView<E> view)
|
Method Summary | |
---|---|
boolean |
contains(java.lang.Object elem)
Returns true if a particular element is contained in this list. |
E |
get(int idx)
Get the element at a particular index, or null if there is no such element. |
java.util.Iterator<E> |
iterator()
Return an iterator over all elements in this list. |
int |
size()
Get the number of elements in this list. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubListView(ListView<E> view)
Method Detail |
---|
public java.util.Iterator<E> iterator()
iterator
in interface java.lang.Iterable<E>
iterator
in interface ListView<E>
public E get(int idx)
get
in interface ListView<E>
idx
- index of the element
public int size()
size
in interface ListView<E>
public boolean contains(java.lang.Object elem)
contains
in interface ListView<E>
elem
- element to search for
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |