Module org.refcodes.component
Package org.refcodes.component
Interface ConnectionAccessor.ConnectionProperty<CON>
-
- Type Parameters:
CON
- The type of the connection property.
- All Superinterfaces:
ConnectionAccessor<CON>
,ConnectionAccessor.ConnectionMutator<CON>
- Enclosing interface:
- ConnectionAccessor<CON>
public static interface ConnectionAccessor.ConnectionProperty<CON> extends ConnectionAccessor<CON>, ConnectionAccessor.ConnectionMutator<CON>
Provides a connection property for e.g. anInputStream
or anOutputStream
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.component.ConnectionAccessor
ConnectionAccessor.ConnectionMutator<CON>, ConnectionAccessor.ConnectionProperty<CON>
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default CON
letConnection(CON aConnection)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given connection (setter) as ofConnectionAccessor.ConnectionMutator.setConnection(Object)
and returns the very same value (getter).-
Methods inherited from interface org.refcodes.component.ConnectionAccessor
getConnection
-
Methods inherited from interface org.refcodes.component.ConnectionAccessor.ConnectionMutator
setConnection
-
-
-
-
Method Detail
-
letConnection
default CON letConnection(CON aConnection)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given connection (setter) as ofConnectionAccessor.ConnectionMutator.setConnection(Object)
and returns the very same value (getter).- Parameters:
aConnection
- The connection to set (viaConnectionAccessor.ConnectionMutator.setConnection(Object)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-
-