FixedSetExamples

sbt.internal.util.complete.FixedSetExamples
sealed case class FixedSetExamples(examples: Iterable[String]) extends ExampleSource

A convenience example source that wraps any collection of strings into a source of examples.

Value parameters

examples

the examples that will be displayed to the user when they press the TAB key.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def apply(): Iterable[String]

Attributes

Returns

a (possibly lazy) list of completion example strings. These strings are continuations of user's input. The user's input is incremented with calls to withAddedPrefix.

Definition Classes
override def withAddedPrefix(addedPrefix: String): ExampleSource

Value parameters

addedPrefix

a string that just typed in by the user.

Attributes

Returns

a new source of only those examples that start with the string typed by the user so far (with addition of the just added prefix).

Definition Classes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product