Class AbstractBuilder<T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean validating  
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractBuilder()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract T build()  
      boolean isValidating()
      Indicates whether this builder is a validating builder
      void setValidating​(boolean validating)
      Set the validating builder indicator for this builder
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • validating

        protected boolean validating
    • Constructor Detail

      • AbstractBuilder

        public AbstractBuilder()
    • Method Detail

      • setValidating

        public void setValidating​(boolean validating)
        Set the validating builder indicator for this builder

        A validating builder may perform basic validation during object construction (e.g. cardinality checking, type checking, etc.)

        Parameters:
        validating - the validating builder indicator
      • isValidating

        public boolean isValidating()
        Indicates whether this builder is a validating builder
        Returns:
        true if this builder is a validating builder, false otherwise
      • build

        public abstract T build()
        Specified by:
        build in interface Builder<T>