org.granite.client.persistence.javafx
Class PersistentList<T>
java.lang.Object
org.granite.client.persistence.javafx.PersistentList<T>
- All Implemented Interfaces:
- Externalizable, Serializable, Iterable<T>, Collection<T>, List<T>, javafx.beans.Observable, javafx.collections.ObservableList<T>, LazyableCollection
public class PersistentList<T>
- extends Object
- implements javafx.collections.ObservableList<T>, LazyableCollection, Externalizable
- Author:
- William DRAI
- See Also:
- Serialized Form
PersistentList
public PersistentList()
PersistentList
public PersistentList(Set<T> set)
PersistentList
public PersistentList(boolean initialized)
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized in interface LazyableCollection
initializing
public void initializing()
- Specified by:
initializing in interface LazyableCollection
initialize
public void initialize()
- Specified by:
initialize in interface LazyableCollection
uninitialize
public void uninitialize()
- Specified by:
uninitialize in interface LazyableCollection
clone
public PersistentList<T> clone(boolean uninitialize)
- Specified by:
clone in interface LazyableCollection
addListener
public void addListener(javafx.beans.InvalidationListener listener)
- Specified by:
addListener in interface javafx.beans.Observable
removeListener
public void removeListener(javafx.beans.InvalidationListener listener)
- Specified by:
removeListener in interface javafx.beans.Observable
addListener
public void addListener(javafx.collections.ListChangeListener<? super T> listener)
- Specified by:
addListener in interface javafx.collections.ObservableList<T>
removeListener
public void removeListener(javafx.collections.ListChangeListener<? super T> listener)
- Specified by:
removeListener in interface javafx.collections.ObservableList<T>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Collection<T>- Specified by:
isEmpty in interface List<T>
contains
public boolean contains(Object o)
- Specified by:
contains in interface Collection<T>- Specified by:
contains in interface List<T>
iterator
public Iterator<T> iterator()
- Specified by:
iterator in interface Iterable<T>- Specified by:
iterator in interface Collection<T>- Specified by:
iterator in interface List<T>
add
public boolean add(T e)
- Specified by:
add in interface Collection<T>- Specified by:
add in interface List<T>
remove
public boolean remove(Object o)
- Specified by:
remove in interface Collection<T>- Specified by:
remove in interface List<T>
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll in interface Collection<T>- Specified by:
containsAll in interface List<T>
addAll
public boolean addAll(Collection<? extends T> c)
- Specified by:
addAll in interface Collection<T>- Specified by:
addAll in interface List<T>
addAll
public boolean addAll(int index,
Collection<? extends T> c)
- Specified by:
addAll in interface List<T>
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll in interface Collection<T>- Specified by:
removeAll in interface List<T>
equals
public boolean equals(Object o)
- Specified by:
equals in interface Collection<T>- Specified by:
equals in interface List<T>- Overrides:
equals in class Object
hashCode
public int hashCode()
- Specified by:
hashCode in interface Collection<T>- Specified by:
hashCode in interface List<T>- Overrides:
hashCode in class Object
get
public T get(int index)
- Specified by:
get in interface List<T>
add
public void add(int index,
T element)
- Specified by:
add in interface List<T>
addAll
public boolean addAll(T... elements)
- Specified by:
addAll in interface javafx.collections.ObservableList<T>
clear
public void clear()
- Specified by:
clear in interface Collection<T>- Specified by:
clear in interface List<T>
indexOf
public int indexOf(Object o)
- Specified by:
indexOf in interface List<T>
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf in interface List<T>
listIterator
public ListIterator<T> listIterator()
- Specified by:
listIterator in interface List<T>
listIterator
public ListIterator<T> listIterator(int index)
- Specified by:
listIterator in interface List<T>
remove
public void remove(int arg0,
int arg1)
- Specified by:
remove in interface javafx.collections.ObservableList<T>
remove
public T remove(int index)
- Specified by:
remove in interface List<T>
removeAll
public boolean removeAll(T... elements)
- Specified by:
removeAll in interface javafx.collections.ObservableList<T>
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll in interface Collection<T>- Specified by:
retainAll in interface List<T>
retainAll
public boolean retainAll(T... elements)
- Specified by:
retainAll in interface javafx.collections.ObservableList<T>
set
public T set(int index,
T element)
- Specified by:
set in interface List<T>
setAll
public boolean setAll(Collection<? extends T> coll)
- Specified by:
setAll in interface javafx.collections.ObservableList<T>
setAll
public boolean setAll(T... arg0)
- Specified by:
setAll in interface javafx.collections.ObservableList<T>
size
public int size()
- Specified by:
size in interface Collection<T>- Specified by:
size in interface List<T>
toArray
public Object[] toArray()
- Specified by:
toArray in interface Collection<T>- Specified by:
toArray in interface List<T>
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray in interface Collection<T>- Specified by:
toArray in interface List<T>
subList
public List<T> subList(int fromIndex,
int toIndex)
- Specified by:
subList in interface List<T>
toString
public String toString()
- Overrides:
toString in class Object
readExternal
public void readExternal(ObjectInput input)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal in interface Externalizable
- Throws:
IOException
ClassNotFoundException
writeExternal
public void writeExternal(ObjectOutput output)
throws IOException
- Specified by:
writeExternal in interface Externalizable
- Throws:
IOException