| Modifier and Type | Field and Description |
|---|---|
| private BibEntry | |
| private final List | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Optional | Returns: An Optional containing the previous BibEntry, or an empty Optional if there's no history to go back to.Moves to the previous entry in the history. |
| public boolean | |
| public boolean | |
| public Optional | Returns: An Optional containing the next BibEntry, or an empty Optional if there is no "forward" history.Moves to the next entry in the history. |
| currentEntry | back to summary |
|---|---|
| private BibEntry currentEntry | |
| nextEntries | back to summary |
|---|---|
| private final List<BibEntry> nextEntries | |
| previousEntries | back to summary |
|---|---|
| private final List<BibEntry> previousEntries | |
| NavigationHistory | back to summary |
|---|---|
| public NavigationHistory() | |
| add | back to summary |
|---|---|
| public void add(BibEntry entry) Sets a new entry as the current one, clearing the forward history. The previously current entry is moved to the back stack.
| |
| back | back to summary |
|---|---|
| public Optional Moves to the previous entry in the history. The current entry is pushed to the forward stack, and the last entry from the back stack becomes current. | |
| canGoBack | back to summary |
|---|---|
| public boolean canGoBack() | |
| canGoForward | back to summary |
|---|---|
| public boolean canGoForward() | |
| forward | back to summary |
|---|---|
| public Optional Moves to the next entry in the history. The current entry is pushed to the back stack, and the last entry from the forward stack becomes current. | |