Class WeirdParent.Builder

  • Direct Known Subclasses:
    WeirdBooking.Builder
    Enclosing class:
    WeirdParent

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

      • setSomeProperty

        public WeirdParent.Builder setSomeProperty​(java.lang.String pSomeProperty)
        Method sets attribute someProperty.
        Parameters:
        pSomeProperty - Value to which someProperty should be set.
        Returns:
        WeirdParent.Builder Instance of this builder to support chaining setters. Method never returns null.
      • build

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

        public WeirdParent buildValidated()
                                   throws javax.validation.ConstraintViolationException
        Method creates a new validated instance of class WeirdParent. The object will be initialized with the values of the builder and validated afterwards.
        Returns:
        WeirdParent 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.