Class Sortiment.Builder

  • Enclosing class:
    Sortiment

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

      • setProducts

        public Sortiment.Builder setProducts​(java.util.Set<Product> pProducts)
        Method sets association products.
        Parameters:
        pProducts - Collection to which products should be set.
        Returns:
        Sortiment.Builder Instance of this builder to support chaining setters. Method never returns null.
      • build

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

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