Package org.mozilla.geckoview
Class GeckoSession.SessionState
Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<GeckoSession.HistoryDelegate.HistoryItem>
org.mozilla.geckoview.GeckoSession.SessionState
- All Implemented Interfaces:
Parcelable
,Iterable<GeckoSession.HistoryDelegate.HistoryItem>
,Collection<GeckoSession.HistoryDelegate.HistoryItem>
,List<GeckoSession.HistoryDelegate.HistoryItem>
,GeckoSession.HistoryDelegate.HistoryList
- Enclosing class:
- GeckoSession
@AnyThread
public static class GeckoSession.SessionState
extends AbstractSequentialList<GeckoSession.HistoryDelegate.HistoryItem>
implements GeckoSession.HistoryDelegate.HistoryList, Parcelable
Class representing a saved session state.
-
Nested Class Summary
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
static GeckoSession.SessionState
fromString
(String value) Creates a new SessionState instance from a value previously returned bytoString()
.get
(int index) int
Get the current index in browser history.int
hashCode()
iterator()
listIterator
(int index) void
readFromParcel
(Parcel source) int
size()
toString()
void
writeToParcel
(Parcel dest, int flags) Methods inherited from class java.util.AbstractSequentialList
add, addAll, remove, set
Methods inherited from class java.util.AbstractList
add, clear, indexOf, lastIndexOf, listIterator, removeRange, subList
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
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
add, add, addAll, addAll, clear, contains, containsAll, indexOf, isEmpty, lastIndexOf, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArray
-
Field Details
-
CREATOR
-
-
Constructor Details
-
SessionState
-
-
Method Details
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<GeckoSession.HistoryDelegate.HistoryItem>
- Specified by:
hashCode
in interfaceList<GeckoSession.HistoryDelegate.HistoryItem>
- Overrides:
hashCode
in classAbstractList<GeckoSession.HistoryDelegate.HistoryItem>
-
equals
- Specified by:
equals
in interfaceCollection<GeckoSession.HistoryDelegate.HistoryItem>
- Specified by:
equals
in interfaceList<GeckoSession.HistoryDelegate.HistoryItem>
- Overrides:
equals
in classAbstractList<GeckoSession.HistoryDelegate.HistoryItem>
-
fromString
Creates a new SessionState instance from a value previously returned bytoString()
.- Parameters:
value
- The serialized SessionState in String form.- Returns:
- A new SessionState instance if input is valid; otherwise null.
-
toString
- Overrides:
toString
in classAbstractCollection<GeckoSession.HistoryDelegate.HistoryItem>
-
describeContents
public int describeContents()- Specified by:
describeContents
in interfaceParcelable
-
writeToParcel
- Specified by:
writeToParcel
in interfaceParcelable
-
readFromParcel
-
get
- Specified by:
get
in interfaceList<GeckoSession.HistoryDelegate.HistoryItem>
- Overrides:
get
in classAbstractSequentialList<GeckoSession.HistoryDelegate.HistoryItem>
-
iterator
- Specified by:
iterator
in interfaceCollection<GeckoSession.HistoryDelegate.HistoryItem>
- Specified by:
iterator
in interfaceIterable<GeckoSession.HistoryDelegate.HistoryItem>
- Specified by:
iterator
in interfaceList<GeckoSession.HistoryDelegate.HistoryItem>
- Overrides:
iterator
in classAbstractSequentialList<GeckoSession.HistoryDelegate.HistoryItem>
-
listIterator
- Specified by:
listIterator
in interfaceList<GeckoSession.HistoryDelegate.HistoryItem>
- Specified by:
listIterator
in classAbstractSequentialList<GeckoSession.HistoryDelegate.HistoryItem>
-
size
public int size()- Specified by:
size
in interfaceCollection<GeckoSession.HistoryDelegate.HistoryItem>
- Specified by:
size
in interfaceList<GeckoSession.HistoryDelegate.HistoryItem>
- Specified by:
size
in classAbstractCollection<GeckoSession.HistoryDelegate.HistoryItem>
-
getCurrentIndex
public int getCurrentIndex()Description copied from interface:GeckoSession.HistoryDelegate.HistoryList
Get the current index in browser history.- Specified by:
getCurrentIndex
in interfaceGeckoSession.HistoryDelegate.HistoryList
- Returns:
- An int representing the current index in browser history.
-