public class ChainUtils extends Object
Constructor and Description |
---|
ChainUtils() |
Modifier and Type | Method and Description |
---|---|
static <T extends Chainable> |
createChain(List<T> initial,
Collection<T> custom)
Extends an initial chain with elements from a custom collection.
|
public static <T extends Chainable> List<T> createChain(List<T> initial, Collection<T> custom)
initial
- initial chain, may be empty, but not null
.custom
- collection of objects to be added to the initial chain,
may be empty, but not null
.ChainException
- when chain extension fails, e.g. when cyclic dependencies are discovered.Copyright © 2018 Open eHealth Foundation. All rights reserved.