Class IBooleanList.IBooleanListableFromCollection
java.lang.Object
org.magicwerk.brownies.collections.primitive.IBooleanList.IBooleanListableFromCollection
- All Implemented Interfaces:
IBooleanListable
- Enclosing class:
IBooleanList
protected static class IBooleanList.IBooleanListableFromCollection
extends Object
implements IBooleanListable
Wrapper to treat a
Collection
as IBooleanListable
.
Note that the implementation relies on the fact that the elements are only accessed sequentially.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
iter
-
size
int size
-
-
Constructor Details
-
IBooleanListableFromCollection
IBooleanListableFromCollection(Collection<Boolean> coll)
-
-
Method Details
-
size
public int size()- Specified by:
size
in interfaceIBooleanListable
-
get
public boolean get(int index) - Specified by:
get
in interfaceIBooleanListable
-