public interface

History

implements Iterable<T>
jline.console.history.History
Known Indirect Subclasses

Class Overview

Console history.

Summary

Nested Classes
interface History.Entry  
Public Methods
abstract void add(CharSequence line)
abstract void clear()
abstract CharSequence current()
abstract ListIterator<History.Entry> entries(int index)
abstract ListIterator<History.Entry> entries()
abstract CharSequence get(int index)
abstract int index()
abstract boolean isEmpty()
abstract Iterator<History.Entry> iterator()
abstract boolean moveTo(int index)
abstract void moveToEnd()
abstract boolean moveToFirst()
abstract boolean moveToLast()
abstract boolean next()
abstract boolean previous()
abstract CharSequence remove(int i)
Remove the history element at the given index.
abstract CharSequence removeFirst()
Remove the first element from history.
abstract CharSequence removeLast()
Remove the last element from history
abstract void replace(CharSequence item)
abstract void set(int index, CharSequence item)
Set the history item at the given index to the given CharSequence.
abstract int size()
[Expand]
Inherited Methods
From interface java.lang.Iterable

Public Methods

public abstract void add (CharSequence line)

public abstract void clear ()

public abstract CharSequence current ()

public abstract ListIterator<History.Entry> entries (int index)

public abstract ListIterator<History.Entry> entries ()

public abstract CharSequence get (int index)

public abstract int index ()

public abstract boolean isEmpty ()

public abstract Iterator<History.Entry> iterator ()

public abstract boolean moveTo (int index)

public abstract void moveToEnd ()

public abstract boolean moveToFirst ()

public abstract boolean moveToLast ()

public abstract boolean next ()

public abstract boolean previous ()

public abstract CharSequence remove (int i)

Remove the history element at the given index.

Parameters
i the index of the element to remove
Returns
  • the removed element

public abstract CharSequence removeFirst ()

Remove the first element from history.

Returns
  • the removed element

public abstract CharSequence removeLast ()

Remove the last element from history

Returns
  • the removed element

public abstract void replace (CharSequence item)

public abstract void set (int index, CharSequence item)

Set the history item at the given index to the given CharSequence.

Parameters
index the index of the history offset
item the new item

public abstract int size ()