Class Partner.Builder

  • Direct Known Subclasses:
    Company.Builder, PersonBase.BuilderBase
    Enclosing class:
    Partner

    public static class Partner.Builder
    extends java.lang.Object
    Class implements builder to create a new instance of class Partner.
    • Constructor Detail

      • Builder

        protected Builder()
        Use Partner.builder() instead of private constructor to create new builder.
    • Method Detail

      • setID

        public Partner.Builder setID​(com.anaptecs.jeaf.xfun.api.common.ObjectIdentity<?> pObjectID)
        Method sets the identifier for the object created using the builder. The reference may be null since an id is not mandatory.
      • build

        public Partner build()
        Method creates a new instance of class Partner. The object will be initialized with the values of the builder.
        Returns:
        Partner Created object. The method never returns null.
      • buildValidated

        public Partner buildValidated()
                               throws javax.validation.ConstraintViolationException
        Method creates a new validated instance of class Partner. The object will be initialized with the values of the builder and validated afterwards.
        Returns:
        Partner Created and validated object. The method never returns null.
        Throws:
        javax.validation.ConstraintViolationException - in case that one or more validations for the created object failed.