public CompositeKnot<State,Change,Action> extends Knot<State,Change>
If your interface Knot becomes big and you want to improve its maintainability and extensibility you
may consider to decompose it. You start decomposition by grouping related functionality into,
in a certain sense, indecomposable pieces called Primes.
interface Prime defines its own Change's, Action's and Reducer for own changes. It's only the State, what
is shared between the Primes. In that respect each Prime can be considered to be a separate interface Knot
working on a shared State. Once all Primes are defined, they can be composed together and provided
though CompositeKnot.compose function to interface CompositeKnot which implements standard interface Knot interface.
| Modifier and Type | Method and Description |
|---|---|
void |
compose(Composition<State,Change,Action> composition) |
getChange, getDisposable, getStatevoid compose(Composition<State,Change,Action> composition)