Package no.digipost.util
Class ChainableAssignment<V,C>
java.lang.Object
no.digipost.util.ChainableAssignment<V,C>
- Type Parameters:
C- The "chain" type, which is returned from each call tois(Object)to allow chained invocation.
- All Implemented Interfaces:
Consumer<V>,Supplier<V>,Assignment<V>,ViewableAsOptional<V>,ViewableAsOptional.Single<V>
An
Assignment with the added ability to chain several assignments
with is(Object).-
Nested Class Summary
Nested classes/interfaces inherited from interface no.digipost.util.ViewableAsOptional
ViewableAsOptional.Single<V>, ViewableAsOptional.TooManyElements -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface no.digipost.util.Assignment
accept, chainableWithMethods inherited from interface no.digipost.util.ViewableAsOptional.Single
toOptional
-
Constructor Details
-
ChainableAssignment
-
-
Method Details
-
is
Assign the given value and return object to allow chained invocation.- Parameters:
value- the value to assign- Returns:
- the object to allow further chained invocation
-
get
-
set
Description copied from interface:AssignmentAssign the given value.- Specified by:
setin interfaceAssignment<V>- Parameters:
value- the value to assign.
-