-
- All Implemented Interfaces:
-
com.firebase.ui.common.BaseChangeEventListener,com.firebase.ui.database.ChangeEventListener,java.lang.Iterable,java.util.Collection,java.util.List,java.util.SequencedCollection
public class FirebaseIndexArray<T> extends ObservableSnapshotArray<T> implements ChangeEventListener
-
-
Constructor Summary
Constructors Constructor Description FirebaseIndexArray(Query keyQuery, DatabaseReference dataRef, SnapshotParser<T> parser)Create a new FirebaseIndexArray with a custom SnapshotParser.
-
Method Summary
Modifier and Type Method Description voidonChildChanged(@NonNull() ChangeEventType type, @NonNull() DataSnapshot snapshot, int newIndex, int oldIndex)voidonDataChanged()voidonError(@NonNull() DatabaseError error)-
Methods inherited from class com.firebase.ui.common.BaseObservableSnapshotArray
addChangeEventListener, clear, get, getSnapshot, isListening, removeAllListeners, removeChangeEventListener, size -
Methods inherited from class java.util.AbstractList
add, add, addAll, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, remove, set, subList -
Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString -
Methods inherited from class java.util.Collection
parallelStream, removeIf, spliterator, stream -
Methods inherited from class java.lang.Iterable
forEach, iterator, spliterator -
Methods inherited from class java.util.List
addFirst, addLast, copyOf, getFirst, getLast, of, removeFirst, removeLast, replaceAll, reversed, sort -
Methods inherited from class java.util.SequencedCollection
reversed -
Methods inherited from class com.firebase.ui.common.BaseChangeEventListener
onChildChanged, onDataChanged, onError -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
FirebaseIndexArray
FirebaseIndexArray(Query keyQuery, DatabaseReference dataRef, SnapshotParser<T> parser)
Create a new FirebaseIndexArray with a custom SnapshotParser.- Parameters:
keyQuery- The Firebase location containing the list of keys to be found in{@code * dataRef}.dataRef- The Firebase location to watch for data changes.
-
-
Method Detail
-
onChildChanged
void onChildChanged(@NonNull() ChangeEventType type, @NonNull() DataSnapshot snapshot, int newIndex, int oldIndex)
-
onDataChanged
void onDataChanged()
-
-
-
-