T
- The type of the list that this wrapper wraps.public class DirtyCollectionWrapper<T> extends Object implements Dirtyable, Collection<T>
List
implementation that wraps another list, intercepting
modifications to the list structure and reporting on weather or not the list
has been modified, and also checking list elements for modification.Modifier and Type | Method and Description |
---|---|
boolean |
add(T e) |
boolean |
addAll(Collection<? extends T> c) |
void |
clear() |
void |
clearDirty()
Clears the dirty state.
|
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object o) |
protected Collection<T> |
getDelegate() |
protected org.apache.gora.persistency.impl.DirtyFlag |
getDirtyFlag() |
int |
hashCode() |
boolean |
isDirty()
Returns whether any of the fields of the object has been modified after
construction or loading.
|
boolean |
isEmpty() |
Iterator<T> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<R> R[] |
toArray(R[] a) |
public boolean isDirty()
Dirtyable
public void clearDirty()
Dirtyable
clearDirty
in interface Dirtyable
public int size()
size
in interface Collection<T>
public boolean isEmpty()
isEmpty
in interface Collection<T>
public boolean contains(Object o)
contains
in interface Collection<T>
public Object[] toArray()
toArray
in interface Collection<T>
public <R> R[] toArray(R[] a)
toArray
in interface Collection<T>
public boolean add(T e)
add
in interface Collection<T>
public boolean remove(Object o)
remove
in interface Collection<T>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<T>
public boolean addAll(Collection<? extends T> c)
addAll
in interface Collection<T>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<T>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<T>
public void clear()
clear
in interface Collection<T>
public boolean equals(Object o)
equals
in interface Collection<T>
equals
in class Object
public int hashCode()
hashCode
in interface Collection<T>
hashCode
in class Object
protected Collection<T> getDelegate()
protected org.apache.gora.persistency.impl.DirtyFlag getDirtyFlag()
Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.