Class DefaultHistory.EntryImpl
java.lang.Object
org.jline.reader.impl.history.DefaultHistory.EntryImpl
- All Implemented Interfaces:
History.Entry
- Enclosing class:
DefaultHistory
Default implementation of the
History.Entry interface.
This class represents a single history entry with an index, timestamp, and command text.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EntryImpl
-
-
Method Details
-
index
public int index()Description copied from interface:History.EntryReturns the index of this entry in the history.- Specified by:
indexin interfaceHistory.Entry- Returns:
- the index position of this entry
-
time
Description copied from interface:History.EntryReturns the timestamp when this entry was added to the history.- Specified by:
timein interfaceHistory.Entry- Returns:
- the timestamp of this entry
-
line
Description copied from interface:History.EntryReturns the command line text of this entry.- Specified by:
linein interfaceHistory.Entry- Returns:
- the command line text
-
toString
-