Module org.refcodes.mixin
Package org.refcodes.mixin
Interface PrintStreamAccessor.PrintStreamProperty
- All Superinterfaces:
PrintStreamAccessor
,PrintStreamAccessor.PrintStreamMutator
- Enclosing interface:
- PrintStreamAccessor
public static interface PrintStreamAccessor.PrintStreamProperty
extends PrintStreamAccessor, PrintStreamAccessor.PrintStreamMutator
Provides an print stream property.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.PrintStreamAccessor
PrintStreamAccessor.PrintStreamBuilder<B extends PrintStreamAccessor.PrintStreamBuilder<?>>, PrintStreamAccessor.PrintStreamMutator, PrintStreamAccessor.PrintStreamProperty
-
Method Summary
Modifier and TypeMethodDescriptiondefault PrintStream
letPrintStream
(PrintStream aPrintStream) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenPrintStream
(setter) as ofPrintStreamAccessor.PrintStreamMutator.setPrintStream(PrintStream)
and returns the very same value (getter).Methods inherited from interface org.refcodes.mixin.PrintStreamAccessor
getPrintStream
Methods inherited from interface org.refcodes.mixin.PrintStreamAccessor.PrintStreamMutator
setPrintStream
-
Method Details
-
letPrintStream
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenPrintStream
(setter) as ofPrintStreamAccessor.PrintStreamMutator.setPrintStream(PrintStream)
and returns the very same value (getter).- Parameters:
aPrintStream
- ThePrintStream
to set (viaPrintStreamAccessor.PrintStreamMutator.setPrintStream(PrintStream)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-