Summary
Public Methods |
void
|
onChanged(int position, int count)
Called by the SortedList when the item at the given position is updated.
|
void
|
onInserted(int position, int count)
Called by the SortedList when an item is inserted at the given position.
|
void
|
onMoved(int fromPosition, int toPosition)
Called by the SortedList when an item changes its position in the list.
|
void
|
onRemoved(int position, int count)
Called by the SortedList when an item is removed from the given position.
|
[Expand]
Inherited Methods |
From class
android.support.v7.util.SortedList.Callback
abstract
boolean
|
areContentsTheSame(T2 oldItem, T2 newItem)
Called by the SortedList when it wants to check whether two items have the same data
or not.
|
abstract
boolean
|
areItemsTheSame(T2 item1, T2 item2)
Called by the SortedList to decide whether two object represent the same Item or not.
|
abstract
int
|
compare(T2 o1, T2 o2)
|
abstract
void
|
onChanged(int position, int count)
Called by the SortedList when the item at the given position is updated.
|
abstract
void
|
onInserted(int position, int count)
Called by the SortedList when an item is inserted at the given position.
|
abstract
void
|
onMoved(int fromPosition, int toPosition)
Called by the SortedList when an item changes its position in the list.
|
abstract
void
|
onRemoved(int position, int count)
Called by the SortedList when an item is removed from the given position.
|
|
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
|
final
Class<?>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
|
Public Constructors
public
SortedListAdapterCallback
(Adapter adapter)
Parameters
adapter
| The Adapter instance which should receive events from the SortedList.
|
Public Methods
public
void
onChanged
(int position, int count)
Called by the SortedList when the item at the given position is updated.
Parameters
position
| The position of the item which has been updated. |
count
| The number of items which has changed.
|
public
void
onInserted
(int position, int count)
Called by the SortedList when an item is inserted at the given position.
Parameters
position
| The position of the new item. |
count
| The number of items that have been added.
|
public
void
onMoved
(int fromPosition, int toPosition)
Called by the SortedList when an item changes its position in the list.
Parameters
fromPosition
| The previous position of the item before the move. |
toPosition
| The new position of the item.
|
public
void
onRemoved
(int position, int count)
Called by the SortedList when an item is removed from the given position.
Parameters
position
| The position of the item which has been removed. |
count
| The number of items which have been removed.
|