@FunctionalInterface
public static interface RecursiveChain.OnElementAddedFunction
RecursiveChain
. This operation is optionally set when the
RecursiveChain
is created. See the RecursiveChain.Builder.onElementAdded(com.thomsonreuters.platformservices.elektron.objects.chain.RecursiveChain.OnElementAddedFunction)
for more details.Modifier and Type | Method and Description |
---|---|
void |
onElementAdded(java.util.List<java.lang.Long> position,
java.util.List<java.lang.String> name,
RecursiveChain chain)
Called by a
RecursiveChain when a new element is added. |
void onElementAdded(java.util.List<java.lang.Long> position, java.util.List<java.lang.String> name, RecursiveChain chain)
RecursiveChain
when a new element is added.position
- position of the element in the chain (starts at 0).
An element position is represented by a list of numbers (Each number
representing a position at a given depth in the chain).name
- name of the new element.
An element name is made of a list of strings that represents the path to
reach this element in the recursive chain .chain
- the RecursiveChain the new element has been added to.