grizzled.readline

History

trait History extends AnyRef

Models a Readline history: an object that holds previously read lines.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. History
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def append(line: String): Unit

    Unconditionally appends the specified line to the history.

    Unconditionally appends the specified line to the history.

    line

    the line to add

    Attributes
    protected
  2. abstract def clear: Unit

    Clear the history buffer

  3. abstract def get: List[String]

    Get the contents of the history buffer, in a list.

    Get the contents of the history buffer, in a list.

    returns

    the history lines

  4. abstract def last: Option[String]

    Get the last (i.

    Get the last (i.e., most recent) entry from the buffer.

    returns

    the most recent entry, as an Option, or None if the history buffer is empty

  5. abstract def max: Int

    Get maximum history size.

    Get maximum history size.

    returns

    the current max history size, or 0 for unlimited.

  6. abstract def max_=(newSize: Int): Unit

    Set maximum history size.

    Set maximum history size.

    newSize

    the new max history size, or 0 for unlimited.

  7. abstract def size: Int

    Get the current number of entries in the history buffer.

    Get the current number of entries in the history buffer.

    returns

    the size of the history buffer

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. def +=(line: String): Unit

    Add a line to the history.

    Add a line to the history. Does not add the line if it is identical to the most recently added line.

    line

    the line to add

  4. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  13. def load(path: String): Unit

    Load the contents of the history from the specified path, overwriting any existing history data (i.

    Load the contents of the history from the specified path, overwriting any existing history data (i.e., clearing the history buffer first).

    path

    where to save the history

  14. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  17. def save(path: String): Unit

    Save the contents of the history to the specified path.

    Save the contents of the history to the specified path.

    path

    where to save the history

  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  19. def toString(): String

    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped