Package org.mozilla.geckoview
Interface GeckoSession.HistoryDelegate.HistoryList
- All Superinterfaces:
Collection<GeckoSession.HistoryDelegate.HistoryItem>
,Iterable<GeckoSession.HistoryDelegate.HistoryItem>
,List<GeckoSession.HistoryDelegate.HistoryItem>
- All Known Implementing Classes:
GeckoSession.SessionState
- Enclosing interface:
- GeckoSession.HistoryDelegate
public static interface GeckoSession.HistoryDelegate.HistoryList
extends List<GeckoSession.HistoryDelegate.HistoryItem>
A representation of browser history, accessible as a `List`. The list itself and its entries
are immutable; any attempt to mutate will result in an `UnsupportedOperationException`.
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
Get the current index in browser history.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, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
Method Details
-
getCurrentIndex
@AnyThread default int getCurrentIndex()Get the current index in browser history.- Returns:
- An int representing the current index in browser history.
-