Package com.firebase.ui.database
Class ObservableSnapshotArray<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- com.firebase.ui.common.BaseObservableSnapshotArray<com.google.firebase.database.DataSnapshot,com.google.firebase.database.DatabaseError,ChangeEventListener,T>
-
- com.firebase.ui.database.ObservableSnapshotArray<T>
-
- Type Parameters:
T- a POJO class to which the DataSnapshots can be converted.
- All Implemented Interfaces:
Iterable<T>,Collection<T>,List<T>
- Direct Known Subclasses:
FirebaseArray,FirebaseIndexArray
public abstract class ObservableSnapshotArray<T> extends com.firebase.ui.common.BaseObservableSnapshotArray<com.google.firebase.database.DataSnapshot,com.google.firebase.database.DatabaseError,ChangeEventListener,T>
Exposes a collection of items in Firebase as aListofDataSnapshot. To observe the list attach aChildEventListener.
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description ObservableSnapshotArray(SnapshotParser<T> parser)Create an ObservableSnapshotArray with a customSnapshotParser.
-
Method Summary
-
Methods inherited from class com.firebase.ui.common.BaseObservableSnapshotArray
addChangeEventListener, clear, get, getSnapshot, getSnapshots, isListening, isListening, notifyOnChildChanged, notifyOnDataChanged, notifyOnError, onCreate, onDestroy, removeAllListeners, removeChangeEventListener, size
-
Methods inherited from class java.util.AbstractList
add, add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
-
-
-
Constructor Detail
-
ObservableSnapshotArray
public ObservableSnapshotArray(@NonNull SnapshotParser<T> parser)Create an ObservableSnapshotArray with a customSnapshotParser.- Parameters:
parser- theSnapshotParserto use
-
-