E
- the element typepublic class UpdateArrayList<E> extends ArrayList<E> implements UpdateList<E>
com.toolsverse.util.Mutable#baseline()
call will baseline all objects in the list as well. In this case all objects must implement com.toolsverse.util.Mutable
interface.Mutable
,
Serialized FormConstructor and Description |
---|
UpdateArrayList()
Instantiates a new empty UpdateArrayList.
|
UpdateArrayList(boolean onlyDeletes)
Instantiates a new empty UpdateArrayList.
|
UpdateArrayList(boolean onlyDeletes,
boolean baselineAll)
Instantiates a new empty UpdateArrayList.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(E value) |
void |
add(int index,
E value) |
boolean |
addAll(Collection<? extends E> c) |
boolean |
addAll(int index,
Collection<? extends E> c) |
void |
baseline()
Sets the state of the mutable object to baselined.
|
void |
clear() |
List<E> |
getDeletes()
Gets the list of the deleted elements
|
List<E> |
getInserts()
Gets the list of the inserted elements
|
boolean |
isDirty()
Checks if object has changed but hasn't been baselined.
|
E |
remove(int index) |
boolean |
remove(Object value) |
boolean |
removeAll(Collection<?> c) |
void |
setDirty(boolean value)
Sets the state of the object to dirty or baselined
|
clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
public UpdateArrayList()
public UpdateArrayList(boolean onlyDeletes)
onlyDeletes == true
the list will
track only deletes. List will support baseline all.onlyDeletes
- if true
the list will track only deletespublic UpdateArrayList(boolean onlyDeletes, boolean baselineAll)
onlyDeletes == true
the list will
track only deletes. List will support baseline all functionality if argument
baselineAll == true
.onlyDeletes
- if true
the list will track only deletesbaselineAll
- if true
the list will support baseline allpublic boolean add(E value)
public void add(int index, E value)
public boolean addAll(Collection<? extends E> c)
public boolean addAll(int index, Collection<? extends E> c)
public void baseline()
Mutable
public void clear()
public List<E> getDeletes()
UpdateList
getDeletes
in interface UpdateList<E>
public List<E> getInserts()
UpdateList
getInserts
in interface UpdateList<E>
public boolean isDirty()
Mutable
public E remove(int index)
public boolean remove(Object value)
public boolean removeAll(Collection<?> c)
Copyright © 2010-2020 Toolsverse. All Rights Reserved.