Class ParentChildNodeBuilder<PCN,​HB extends ParentChildNodeBuilder<PCN,​HB>>

  • All Implemented Interfaces:
    Cloneable
    Direct Known Subclasses:
    BookNodeBuilder, CounterpartyNodeBuilder, LegalEntityNodeBuilder

    public abstract class ParentChildNodeBuilder<PCN,​HB extends ParentChildNodeBuilder<PCN,​HB>>
    extends Object
    implements Cloneable
    The ParentChildNodeBuilder is an abstract class that provides a way to make node objects that have a parent child structure. 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 add some default global data to the node generated if the user didn't specify an override. This builder follows the rule that if a field has been set before then it can't be set again.
    • Constructor Detail

      • ParentChildNodeBuilder

        public ParentChildNodeBuilder​(LocalDate asOf)
    • Method Detail

      • withName

        public HB withName​(String name)
      • withParent

        public HB withParent​(String parent)
      • build

        public abstract PCN build()