|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MutableArray
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.infinispan.schematic.document.Array |
---|
Array.Entry |
Nested classes/interfaces inherited from interface org.infinispan.schematic.document.Document |
---|
Document.Field, Document.ValueTransformer |
Method Summary | |
---|---|
boolean |
addAllValues(Collection<?> values)
Modifiable method that adds the supplied values at the end of this array. |
boolean |
addAllValues(int index,
Collection<?> values)
Modifiable method that adds the supplied values at the supplied index, shifting any existing values to the next higher index value. |
void |
addValue(int index,
Object value)
Modifiable method that adds the supplied value at the supplied index, shifting any existing values to the next higher index value. |
int |
addValue(Object value)
Modifiable method that adds the supplied value. |
boolean |
addValueIfAbsent(Object value)
Modifiable method that adds the supplied value if not already in the array. |
void |
removeAll()
Modifiable method that removes all of the values from this array. |
List<Array.Entry> |
removeAllValues(Collection<?> values)
Modifiable method that removes all of the supplied values from this array. |
Object |
removeValue(int index)
Modifiable method that removes the value at the supplied index. |
boolean |
removeValue(Object value)
Modifiable method that removes the supplied value. |
List<Array.Entry> |
retainAllValues(Collection<?> values)
Modifiable method that removes all of the values in this array except the supplied values. |
Object |
setValue(int index,
Object value)
Modifiable method that sets the supplied value at the given index. |
Methods inherited from interface org.infinispan.schematic.document.Array |
---|
clone, getEntries |
Methods inherited from interface java.util.List |
---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
Methods inherited from interface org.infinispan.schematic.internal.document.MutableDocument |
---|
put, putAll, putAll, remove |
Methods inherited from interface org.infinispan.schematic.document.Document |
---|
containsAll, containsField, fields, get, getArray, getBinary, getBoolean, getBoolean, getCode, getCodeWithScope, getDocument, getDouble, getDouble, getInteger, getInteger, getLong, getLong, getMaxKey, getMinKey, getNumber, getNumber, getObjectId, getPattern, getString, getString, getSymbol, getType, getUuid, getUuid, isEmpty, isNull, isNullOrMissing, keySet, size, toMap, with, with, withVariablesReplaced, withVariablesReplacedWithSystemProperties |
Method Detail |
---|
boolean addValueIfAbsent(Object value)
value
- the value to be added
int addValue(Object value)
value
- the value to be added
void addValue(int index, Object value)
index
- the indexvalue
- the value to be addedObject setValue(int index, Object value)
index
- the indexvalue
- the value to be added
boolean removeValue(Object value)
value
- the value to be removed
Object removeValue(int index)
index
- the index of the value to be removed
boolean addAllValues(Collection<?> values)
values
- the values to be added
boolean addAllValues(int index, Collection<?> values)
index
- the index at which the values are to be insertedvalues
- the values to be added
void removeAll()
removeAll
in interface MutableDocument
List<Array.Entry> removeAllValues(Collection<?> values)
values
- the values to be removed
List<Array.Entry> retainAllValues(Collection<?> values)
values
- the values to be kept, while all others are removed
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |