|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.javimmutable.collections.common.AbstractJImmutableArray<T>
org.javimmutable.collections.array.bit32.Bit32Array<T>
org.javimmutable.collections.array.bit32.FullBit32Array<T>
@Immutable public class FullBit32Array<T>
Method Summary | |
---|---|
Bit32Array<T> |
assign(int key,
T value)
Sets the value associated with a specific index. |
Cursor<JImmutableMap.Entry<Integer,T>> |
cursor()
|
Bit32Array<T> |
delete(int key)
Deletes the entry for the specified index (if any). |
Holder<T> |
find(int index)
Return a Holder containing the value associated wth the index or an empty Holder if no value is associated with the index. |
int |
firstIndex()
|
T |
getValueOr(int index,
T defaultValue)
Return the value associated with index or defaultValue if no value is associated. |
int |
size()
Return the number of entries in the map. |
Methods inherited from class org.javimmutable.collections.array.bit32.Bit32Array |
---|
checkIndex, deleteAll, get, of, of, of |
Methods inherited from class org.javimmutable.collections.common.AbstractJImmutableArray |
---|
findEntry, getMap, insert, isEmpty, iterator, keysCursor, valuesCursor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
@Nonnull public Bit32Array<T> assign(int key, @Nullable T value)
JImmutableArray
assign
in interface JImmutableArray<T>
assign
in class Bit32Array<T>
key
- indexvalue
- possibly null value
@Nonnull public Bit32Array<T> delete(int key)
JImmutableArray
delete
in interface JImmutableArray<T>
delete
in class Bit32Array<T>
key
- index
public int firstIndex()
firstIndex
in class Bit32Array<T>
@Nullable public T getValueOr(int index, @Nullable T defaultValue)
JImmutableArray
index
- identifies the value to retrievedefaultValue
- value to return if no entry exists for index
@Nonnull public Holder<T> find(int index)
JImmutableArray
index
- identifies the value to retrieve
public int size()
JImmutableArray
@Nonnull public Cursor<JImmutableMap.Entry<Integer,T>> cursor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |