Class Subindexed<T>
java.lang.Object
org.javimmutable.collections.common.Subindexed<T>
- All Implemented Interfaces:
Indexed<T>
Wrapper for an Indexed that only provides access to a portion of the full Indexed's values.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfind
(int index) Retrieves a Holder containing the (possibly null) value at the specified index if it exists.get
(int index) Retrieve the value.static <T> Subindexed
<T> static <T> Subindexed
<T> int
size()
Retrieve the number of values available in the container.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.javimmutable.collections.Indexed
prefix, reversed, transformed
-
Constructor Details
-
Subindexed
-
-
Method Details
-
of
-
of
-
get
Description copied from interface:Indexed
Retrieve the value. The index must be valid for the container's current size (i.e. [0-size) -
find
Description copied from interface:Indexed
Retrieves a Holder containing the (possibly null) value at the specified index if it exists. If no such value exists returns an empty Holder. -
size
public int size()Description copied from interface:Indexed
Retrieve the number of values available in the container.
-