|
||||||||||
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.EmptyBit32Array<T>
@Immutable public class EmptyBit32Array<T>
Constructor Summary | |
---|---|
EmptyBit32Array()
|
Method Summary | |
---|---|
Bit32Array<T> |
assign(int index,
T value)
Sets the value associated with a specific index. |
Cursor<JImmutableMap.Entry<Integer,T>> |
cursor()
|
Bit32Array<T> |
delete(int index)
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 |
Constructor Detail |
---|
public EmptyBit32Array()
Method Detail |
---|
@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
@Nonnull public Bit32Array<T> assign(int index, @Nullable T value)
JImmutableArray
assign
in interface JImmutableArray<T>
assign
in class Bit32Array<T>
index
- indexvalue
- possibly null value
@Nonnull public Bit32Array<T> delete(int index)
JImmutableArray
delete
in interface JImmutableArray<T>
delete
in class Bit32Array<T>
index
- index
public int size()
JImmutableArray
public int firstIndex()
firstIndex
in class Bit32Array<T>
@Nonnull public Cursor<JImmutableMap.Entry<Integer,T>> cursor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |