Package io.ebeaninternal.json
Class ModifyAwareList<E>
- java.lang.Object
-
- io.ebeaninternal.json.ModifyAwareList<E>
-
- All Implemented Interfaces:
ModifyAwareOwner
,Serializable
,Iterable<E>
,Collection<E>
,List<E>
public class ModifyAwareList<E> extends Object implements List<E>, ModifyAwareOwner
Modify aware wrapper of a list.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ModifyAwareList(ModifyAwareOwner owner, List<E> list)
ModifyAwareList(List<E> list)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, E element)
boolean
add(E e)
boolean
addAll(int index, Collection<? extends E> c)
boolean
addAll(Collection<? extends E> c)
ModifyAwareSet<E>
asSet()
Create an return a modify aware Set.void
clear()
boolean
contains(Object o)
boolean
containsAll(Collection<?> c)
boolean
equals(Object o)
E
get(int index)
int
hashCode()
int
indexOf(Object o)
boolean
isEmpty()
boolean
isMarkedDirty()
Return true if the value is considered dirty.Iterator<E>
iterator()
int
lastIndexOf(Object o)
ListIterator<E>
listIterator()
ListIterator<E>
listIterator(int index)
void
markAsModified()
Marks the object as modified.E
remove(int index)
boolean
remove(Object o)
boolean
removeAll(Collection<?> c)
void
resetMarkedDirty()
Reset the dirty state to clean.boolean
retainAll(Collection<?> c)
E
set(int index, E element)
int
size()
List<E>
subList(int fromIndex, int toIndex)
Object[]
toArray()
<T> T[]
toArray(T[] a)
String
toString()
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
replaceAll, sort, spliterator
-
-
-
-
Constructor Detail
-
ModifyAwareList
public ModifyAwareList(List<E> list)
-
ModifyAwareList
public ModifyAwareList(ModifyAwareOwner owner, List<E> list)
-
-
Method Detail
-
hashCode
public int hashCode()
-
isMarkedDirty
public boolean isMarkedDirty()
Description copied from interface:ModifyAwareOwner
Return true if the value is considered dirty. Note that this resets the dirty status back to clean.- Specified by:
isMarkedDirty
in interfaceModifyAwareOwner
-
markAsModified
public void markAsModified()
Description copied from interface:ModifyAwareOwner
Marks the object as modified.- Specified by:
markAsModified
in interfaceModifyAwareOwner
-
resetMarkedDirty
public void resetMarkedDirty()
Description copied from interface:ModifyAwareOwner
Reset the dirty state to clean.- Specified by:
resetMarkedDirty
in interfaceModifyAwareOwner
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
toArray
public <T> T[] toArray(T[] a)
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll
in interfaceCollection<E>
- Specified by:
containsAll
in interfaceList<E>
-
addAll
public boolean addAll(Collection<? extends E> c)
-
addAll
public boolean addAll(int index, Collection<? extends E> c)
-
removeAll
public boolean removeAll(Collection<?> c)
-
retainAll
public boolean retainAll(Collection<?> c)
-
clear
public void clear()
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf
in interfaceList<E>
-
listIterator
public ListIterator<E> listIterator()
- Specified by:
listIterator
in interfaceList<E>
-
listIterator
public ListIterator<E> listIterator(int index)
- Specified by:
listIterator
in interfaceList<E>
-
asSet
public ModifyAwareSet<E> asSet()
Create an return a modify aware Set.
-
-