Class CounterpartyNodeBuilder
- java.lang.Object
-
- com.activeviam.risk.ref.parentchild.builders.ParentChildNodeBuilder<CounterpartyParentChildNode,CounterpartyNodeBuilder>
-
- com.activeviam.risk.ref.parentchild.builders.CounterpartyNodeBuilder
-
- All Implemented Interfaces:
Cloneable
public class CounterpartyNodeBuilder extends ParentChildNodeBuilder<CounterpartyParentChildNode,CounterpartyNodeBuilder>
The CounterpartyNodeBuilder is an instance ofParentChildNodeBuilder
that provides a way to make counterparty nodes. It follows a standard builder pattern for making objects. The primary benefit this builder provides over allowing the user to just create their own nodes is it provides a way to map field types from strings to booleans. Nodes in the datastore itself may have fields with "Y" or "N" instead of the data models true/false. This builder converts those values for a caller without the caller having to worry about the type of the fields for the modal.
-
-
Field Summary
-
Fields inherited from class com.activeviam.risk.ref.parentchild.builders.ParentChildNodeBuilder
asOf, name, parent
-
-
Constructor Summary
Constructors Constructor Description CounterpartyNodeBuilder(LocalDate asOf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CounterpartyParentChildNode
build()
-
Methods inherited from class com.activeviam.risk.ref.parentchild.builders.ParentChildNodeBuilder
withName, withParent
-
-
-
-
Constructor Detail
-
CounterpartyNodeBuilder
public CounterpartyNodeBuilder(LocalDate asOf)
-
-
Method Detail
-
build
public CounterpartyParentChildNode build()
- Specified by:
build
in classParentChildNodeBuilder<CounterpartyParentChildNode,CounterpartyNodeBuilder>
-
-