Class UICStop.Builder

  • Enclosing class:
    UICStop

    public static class UICStop.Builder
    extends Stop.Builder
    Class implements builder to create a new instance of class UICStop.
    • Constructor Detail

      • Builder

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

      • setUicCode

        public UICStop.Builder setUicCode​(java.lang.String pUicCode)
        Method sets attribute uicCode.
        Parameters:
        pUicCode - Value to which uicCode should be set.
        Returns:
        UICStop.Builder Instance of this builder to support chaining setters. Method never returns null.
      • setPriority

        public UICStop.Builder setPriority​(int pPriority)
        Method sets attribute priority.
        Parameters:
        pPriority - Value to which priority should be set.
        Returns:
        UICStop.Builder Instance of this builder to support chaining setters. Method never returns null.
      • setCode

        public UICStop.Builder setCode​(long pCode)
        Method sets attribute code.
        Parameters:
        pCode - Value to which code should be set.
        Returns:
        UICStop.Builder Instance of this builder to support chaining setters. Method never returns null.
      • setIndex2

        public UICStop.Builder setIndex2​(byte pIndex2)
        Method sets attribute index2.
        Parameters:
        pIndex2 - Value to which index2 should be set.
        Returns:
        UICStop.Builder Instance of this builder to support chaining setters. Method never returns null.
      • build

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

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