java.lang.Object
org.magicwerk.brownies.collections.IList.IListableFromCollection<E>
- All Implemented Interfaces:
IListable<E>
- Enclosing class:
IList<E>
protected static class IList.IListableFromCollection<E>
extends Object
implements IListable<E>
Wrapper to treat a
Collection as
IListable.
Note that the implementation relies on the fact that the elements are only accessed sequentially.
-
Method Summary
Return element at specified position
int
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
size
public int size()
Return size of list
- Specified by:
size in interface IListable<E>
-
get
Return element at specified position
- Specified by:
get in interface IListable<E>