| Modifier and Type | Class and Description |
|---|---|
| public static interface |
| Modifier and Type | Method and Description |
|---|---|
| public default void | |
| public void | |
| public void | |
| public void | |
| public String | |
| public int | |
| public String | |
| public int | |
| public default boolean | |
| public default boolean | Returns: true if the given entry should be persisted, false otherwisethe entry to check entryCheck if an entry should be persisted or not. |
| public ListIterator | |
| public default ListIterator | |
| public int | |
| public void | |
| public boolean | Returns: Returns true if the index was moved.The index to move to. index)Move to the specified index in the history |
| public void | |
| public boolean | Returns: Return false if there are no iterator in the history or if the history is already at the beginning.Moves the history index to the first entry. |
| public boolean | Returns: Returns false if there were no history iterator or the history index was already at the last entry.This moves the history to the last entry. |
| public boolean | Returns: true if we successfully went to the next elementMove the pointer to the next element in the buffer. |
| public boolean | Returns: true if we successfully went to the previous elementMove the pointer to the previous element in the buffer. |
| public void | |
| public void | |
| public void | |
| public default Iterator | |
| public default Iterator | |
| public void | |
| public int | |
| public void |
| add | back to summary |
|---|---|
| public default void add(String line) | |
| add | back to summary |
|---|---|
| public void add(Instant time, String line) | |
| append | back to summary |
|---|---|
| public void append(Path file, boolean incremental) throws IOException Append history to the file. If incremental only the events that are new since the last incremental operation to the file are added.
| |
| attach | back to summary |
|---|---|
| public void attach(LineReader reader) Initialize the history for the given reader.
| |
| current | back to summary |
|---|---|
| public String current() Return the content of the current buffer.
| |
| first | back to summary |
|---|---|
| public int first() | |
| get | back to summary |
|---|---|
| public String get(int index) | |
| index | back to summary |
|---|---|
| public int index() | |
| isEmpty | back to summary |
|---|---|
| public default boolean isEmpty() | |
| isPersistable | back to summary |
|---|---|
| public default boolean isPersistable(History. Check if an entry should be persisted or not. | |
| iterator | back to summary |
|---|---|
| public ListIterator | |
| iterator | back to summary |
|---|---|
| public default ListIterator Implements java. Doc from java. Returns an iterator over elements of type | |
| last | back to summary |
|---|---|
| public int last() | |
| load | back to summary |
|---|---|
| public void load() throws IOException Load history.
| |
| moveTo | back to summary |
|---|---|
| public boolean moveTo(int index) Move to the specified index in the history
| |
| moveToEnd | back to summary |
|---|---|
| public void moveToEnd() Move to the end of the history buffer. This will be a blank entry, after all of the other iterator. | |
| moveToFirst | back to summary |
|---|---|
| public boolean moveToFirst() Moves the history index to the first entry.
| |
| moveToLast | back to summary |
|---|---|
| public boolean moveToLast() This moves the history to the last entry. This entry is one position before the moveToEnd() position.
| |
| next | back to summary |
|---|---|
| public boolean next() Move the pointer to the next element in the buffer.
| |
| previous | back to summary |
|---|---|
| public boolean previous() Move the pointer to the previous element in the buffer.
| |
| purge | back to summary |
|---|---|
| public void purge() throws IOException Purge history.
| |
| read | back to summary |
|---|---|
| public void read(Path file, boolean checkDuplicates) throws IOException Read history from the file. If checkDuplicates is
| |
| resetIndex | back to summary |
|---|---|
| public void resetIndex() Reset index after remove | |
| reverseIterator | back to summary |
|---|---|
| public default Iterator | |
| reverseIterator | back to summary |
|---|---|
| public default Iterator | |
| save | back to summary |
|---|---|
| public void save() throws IOException Save history.
| |
| size | back to summary |
|---|---|
| public int size() | |
| write | back to summary |
|---|---|
| public void write(Path file, boolean incremental) throws IOException Write history to the file. If incremental only the events that are new since the last incremental operation to the file are added.
| |
| index | back to summary |
|---|---|
| public int index() | |
| line | back to summary |
|---|---|
| public String line() | |
| time | back to summary |
|---|---|
| public Instant time() | |