jline.console.history
Interface History

All Superinterfaces:
java.lang.Iterable<History.Entry>
All Known Subinterfaces:
PersistentHistory
All Known Implementing Classes:
FileHistory, MemoryHistory

public interface History
extends java.lang.Iterable<History.Entry>

Console history.

Since:
2.3
Author:
Marc Prud'hommeaux, Jason Dillon

Nested Class Summary
static interface History.Entry
           
 
Method Summary
 void add(java.lang.CharSequence line)
           
 void clear()
           
 java.lang.CharSequence current()
           
 java.util.ListIterator<History.Entry> entries()
           
 java.util.ListIterator<History.Entry> entries(int index)
           
 java.lang.CharSequence get(int index)
           
 int index()
           
 boolean isEmpty()
           
 java.util.Iterator<History.Entry> iterator()
           
 boolean moveTo(int index)
           
 void moveToEnd()
           
 boolean moveToFirst()
           
 boolean moveToLast()
           
 boolean next()
           
 boolean previous()
           
 void replace(java.lang.CharSequence item)
           
 int size()
           
 

Method Detail

size

int size()

isEmpty

boolean isEmpty()

index

int index()

clear

void clear()

get

java.lang.CharSequence get(int index)

add

void add(java.lang.CharSequence line)

replace

void replace(java.lang.CharSequence item)

entries

java.util.ListIterator<History.Entry> entries(int index)

entries

java.util.ListIterator<History.Entry> entries()

iterator

java.util.Iterator<History.Entry> iterator()
Specified by:
iterator in interface java.lang.Iterable<History.Entry>

current

java.lang.CharSequence current()

previous

boolean previous()

next

boolean next()

moveToFirst

boolean moveToFirst()

moveToLast

boolean moveToLast()

moveTo

boolean moveTo(int index)

moveToEnd

void moveToEnd()