Class ChainUtils
- java.lang.Object
-
- org.openehealth.ipf.commons.ihe.core.chain.ChainUtils
-
public class ChainUtils extends Object
- Author:
- Christian Ohr, Dmytro Rud
-
-
Constructor Summary
Constructors Constructor Description ChainUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends Chainable>
List<T>createChain(List<T> initial, Collection<T> custom)
Extends an initial chain with elements from a custom collection.
-
-
-
Method Detail
-
createChain
public static <T extends Chainable> List<T> createChain(List<T> initial, Collection<T> custom)
Extends an initial chain with elements from a custom collection.- Parameters:
initial
- initial chain, may be empty, but notnull
.custom
- collection of objects to be added to the initial chain, may be empty, but notnull
.- Returns:
- merged chain.
- Throws:
ChainException
- when chain extension fails, e.g. when cyclic dependencies are discovered.
-
-