public interface MutableArray extends Array, MutableDocument
Array.EntryDocument.Field, Document.ValueTransformer| Modifier and Type | Method and Description |
|---|---|
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.
|
clone, getEntriesadd, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArrayput, putAll, putAll, removecontainsAll, 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, with, withVariablesReplaced, withVariablesReplacedWithSystemPropertiesboolean addValueIfAbsent(Object value)
value - the value to be addedint addValue(Object value)
value - the value to be addedvoid 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 addedboolean removeValue(Object value)
value - the value to be removedObject removeValue(int index)
index - the index of the value to be removedboolean addAllValues(Collection<?> values)
values - the values to be addedboolean addAllValues(int index,
Collection<?> values)
index - the index at which the values are to be insertedvalues - the values to be addedvoid removeAll()
removeAll in interface MutableDocumentList<Array.Entry> removeAllValues(Collection<?> values)
values - the values to be removedList<Array.Entry> retainAllValues(Collection<?> values)
values - the values to be kept, while all others are removedCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.