public class PersistableList extends Object implements Persistable, List
| Constructor and Description |
|---|
PersistableList()
Default constructor that uses an ArrayList as the delegate and expects no non-Jeppetto access.
|
PersistableList(int initialCapacity)
Constructor that uses an ArrayList with an initial capacity as the delegate and expects no non-Jeppetto access.
|
PersistableList(List delegate,
boolean modifiableDelegate)
Constructor that takes is passed the delegate list along w/ an indication as to whether the
delegate is modifiable by code outside of Jeppetto.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
__getDelegate() |
Iterator<String> |
__getDirtyFields() |
boolean |
__isDirty() |
boolean |
__isPersisted(String storeIdentifier) |
void |
__markPersisted(String storeIdentifier)
Consider the current state of the object to be in sync with the persisted state.
|
void |
add(int index,
Object element) |
boolean |
add(Object element) |
boolean |
addAll(Collection elements) |
boolean |
addAll(int index,
Collection elements) |
void |
clear() |
boolean |
contains(Object element) |
boolean |
containsAll(Collection elements) |
boolean |
equals(Object o) |
Object |
get(int index) |
int |
hashCode() |
int |
indexOf(Object element) |
boolean |
isEmpty() |
boolean |
isRewrite() |
Iterator |
iterator() |
int |
lastIndexOf(Object element) |
ListIterator |
listIterator() |
ListIterator |
listIterator(int index) |
Object |
remove(int index) |
boolean |
remove(Object element) |
boolean |
removeAll(Collection elements) |
boolean |
retainAll(Collection elements) |
Object |
set(int index,
Object element) |
int |
size() |
List |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
Object[] |
toArray(Object[] objects) |
public PersistableList()
public PersistableList(int initialCapacity)
public PersistableList(List delegate, boolean modifiableDelegate)
delegate - the underlying List implementationmodifiableDelegate - true if access is possible to the delegate by non-Jeppetto codepublic boolean __isDirty()
__isDirty in interface Persistablepublic void __markPersisted(String storeIdentifier)
Persistable__markPersisted in interface Persistablepublic boolean __isPersisted(String storeIdentifier)
__isPersisted in interface Persistablepublic Iterator<String> __getDirtyFields()
__getDirtyFields in interface Persistablepublic Object __getDelegate()
__getDelegate in interface Persistablepublic boolean addAll(int index,
Collection elements)
public boolean add(Object element)
add in interface Collectionadd in interface Listpublic boolean addAll(Collection elements)
addAll in interface CollectionaddAll in interface Listpublic boolean remove(Object element)
remove in interface Collectionremove in interface Listpublic boolean removeAll(Collection elements)
removeAll in interface CollectionremoveAll in interface Listpublic boolean retainAll(Collection elements)
retainAll in interface CollectionretainAll in interface Listpublic boolean contains(Object element)
contains in interface Collectioncontains in interface Listpublic boolean containsAll(Collection elements)
containsAll in interface CollectioncontainsAll in interface Listpublic int lastIndexOf(Object element)
lastIndexOf in interface Listpublic Iterator iterator()
public ListIterator listIterator()
listIterator in interface Listpublic ListIterator listIterator(int index)
listIterator in interface Listpublic int size()
size in interface Collectionsize in interface Listpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface Listpublic Object[] toArray()
toArray in interface CollectiontoArray in interface Listpublic Object[] toArray(Object[] objects)
toArray in interface CollectiontoArray in interface Listpublic void clear()
clear in interface Collectionclear in interface Listpublic boolean isRewrite()
public boolean equals(Object o)
Copyright © 2014. All Rights Reserved.