Class ChainUtils
java.lang.Object
org.openehealth.ipf.commons.ihe.core.chain.ChainUtils
- Author:
- Christian Ohr, Dmytro Rud
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateChain
(List<T> initial, Collection<T> custom) Extends an initial chain with elements from a custom collection.
-
Constructor Details
-
ChainUtils
public ChainUtils()
-
-
Method Details
-
createChain
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.
-