Module org.refcodes.component
Package org.refcodes.component
Interface Flushable.FlushBuilder<B extends Flushable.FlushBuilder<B>>
- Type Parameters:
B
- the generic type
- Enclosing interface:
- Flushable
public static interface Flushable.FlushBuilder<B extends Flushable.FlushBuilder<B>>
extends Flushable
The Interface FlushBuilder.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.component.Flushable
Flushable.FlushBuilder<B extends Flushable.FlushBuilder<B>>
-
Method Summary
Modifier and TypeMethodDescriptiondefault B
With flush as ofFlushable.flush()
.default B
Flushes the component by callingwithFlush()
without you to require catching aIOException
.Methods inherited from interface org.refcodes.component.Flushable
flush, flushUnchecked, isFlushable
-
Method Details
-
withFlush
With flush as ofFlushable.flush()
.- Returns:
- The implementing instance as of the Builder-Pattern.
- Throws:
IOException
- in case flushing failed as of some reason.
-
withFlushUnchecked
Flushes the component by callingwithFlush()
without you to require catching aIOException
.- Returns:
- The instance to be returned on which to apply succeeding builder operations.
- Throws:
org.refcodes.exception.IORuntimeException
- encapsulates the aCause and is thrown upon encountering aIOException
exception
-