TypedOutput
Trait to define the behavior of an Output with a particular OutputType.
Attributes
- Graph
-
- Supertypes
- Known subtypes
-
trait BackedOutput[A]class BufferedCharSequenceOutput[A]class UnbackedOutputclass WriterOutputtrait BufferedOutputtrait CharacterOutputShow all
Members list
Type members
Types
The output type for this TypedOutput
The output type for this TypedOutput
Attributes
Value members
Abstract methods
Method to append an x of type OutputType to this Output.
Method to append an x of type OutputType to this Output.
Value parameters
- x
-
the input.
Attributes
- Returns
-
this Output.
A converter from type Any to OutputType.
A converter from type Any to OutputType.
Value parameters
- x
-
the input.
Attributes
- Returns
-
the input, expressed an an OutputType.
Method to return an Output built from the OutputType x.
Method to return an Output built from the OutputType x.
Value parameters
- x
-
the input of type OutputType.
Attributes
- Returns
-
a new instance of Output.
A "zero" element for this TypedOutput. If OutputType is CharSequence, then we will return an empty String.
A "zero" element for this TypedOutput. If OutputType is CharSequence, then we will return an empty String.
Attributes
- Returns
-
a suitable empty OutputType.
Concrete methods
Concatenate each element of the iterator xs to this in turn.
Concatenate each element of the iterator xs to this in turn.
Value parameters
- separator
-
an implicit separator
- xs
-
the iterator of Outputs.
Attributes
- Returns
-
this Output.
Inherited methods
Concatenate each element of the iterable xs to this in turn.
Concatenate each element of the iterable xs to this in turn.
Value parameters
- separator
-
an implicit separator
- xs
-
an iterable of Outputs.
Attributes
- Returns
-
this Output.
- Inherited from:
- Output
Append this to the Output formed by x. NOTE: that this assumes that Output.apply is defined for String.
Append this to the Output formed by x. NOTE: that this assumes that Output.apply is defined for String.
Value parameters
- x
-
an Any
Attributes
- Returns
-
an Output, not necessarily this.
- Inherited from:
- Output
Inherited and Abstract methods
Concatenate this Output (first) and x (second).
Concatenate this Output (first) and x (second).
Value parameters
- other
-
the other Output object.
Attributes
- Returns
-
this Output.
- Inherited from:
- Output
Attributes
- Inherited from:
- AutoCloseable
Method to create a copy of this Output. Content (whether flushed or not) will never be copied, but the other parameters of this Output may or may not be copied, depending on the actual implementation.
Method to create a copy of this Output. Content (whether flushed or not) will never be copied, but the other parameters of this Output may or may not be copied, depending on the actual implementation.
Attributes
- Returns
-
a new Output which is, essentially, similar to this but without any content.
- Inherited from:
- Output
Indent this Output so that the next insertBreak will use the updated indentation.
Indent this Output so that the next insertBreak will use the updated indentation.
Value parameters
- c
-
the indentation to be added.
Attributes
- Returns
-
a new Output with the appropriate indentation.
- Inherited from:
- Output
This method inserts a break into the output. If the output is based on character sequences, then this method will cause a newline character to be inserted.
This method inserts a break into the output. If the output is based on character sequences, then this method will cause a newline character to be inserted.
Attributes
- Returns
-
this
- Inherited from:
- Output