public class DocumentStack extends LinkedList<DocumentInfo> implements Durable, Parcelable
DocumentInfo
, usually the result of a
user-driven traversal.Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<DocumentStack> |
CREATOR |
RootInfo |
root |
modCount
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
DocumentStack() |
Modifier and Type | Method and Description |
---|---|
String |
buildKey()
Build key that uniquely identifies this stack.
|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation.
|
String |
getTitle() |
boolean |
isRecents() |
void |
read(DataInputStream in) |
void |
reset() |
void |
updateDocuments(ContentResolver resolver)
Update a possibly stale restored stack against a live
DocumentsProvider . |
void |
updateRoot(Collection<RootInfo> matchingRoots) |
void |
write(DataOutputStream out) |
void |
writeToParcel(Parcel dest,
int flags)
Flatten this object in to a Parcel.
|
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArray
iterator
equals, hashCode, listIterator, removeRange, subList
containsAll, isEmpty, removeAll, retainAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subList
parallelStream, removeIf, stream
public RootInfo root
public static final Parcelable.Creator<DocumentStack> CREATOR
public String getTitle()
public boolean isRecents()
public void updateRoot(Collection<RootInfo> matchingRoots) throws FileNotFoundException
FileNotFoundException
public void updateDocuments(ContentResolver resolver) throws FileNotFoundException
DocumentsProvider
.FileNotFoundException
public String buildKey()
write(DataOutputStream)
, since they change
too regularly to be used as a key.public void read(DataInputStream in) throws IOException
read
in interface Durable
IOException
public void write(DataOutputStream out) throws IOException
write
in interface Durable
IOException
public int describeContents()
Parcelable
Parcelable.writeToParcel(Parcel, int)
,
the return value of this method must include the
Parcelable.CONTENTS_FILE_DESCRIPTOR
bit.describeContents
in interface Parcelable
Parcelable.CONTENTS_FILE_DESCRIPTOR
public void writeToParcel(Parcel dest, int flags)
Parcelable
writeToParcel
in interface Parcelable
dest
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.