Class IBAN.Builder

  • Enclosing class:
    IBAN

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

      Constructors 
      Modifier Constructor Description
      protected Builder()
      Use IBAN.builder() instead of private constructor to create new builder.
      protected Builder​(IBAN pObject)
      Use IBAN.builder(IBAN) instead of private constructor to create new builder.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      IBAN build()
      Method creates a new instance of class IBAN.
      IBAN buildValidated()
      Method creates a new validated instance of class IBAN.
      IBAN.Builder setValue​(java.lang.String pValue)
      Method sets attribute value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Builder

        protected Builder()
        Use IBAN.builder() instead of private constructor to create new builder.
      • Builder

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

      • setValue

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

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

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