Class AbstractBuilder<T>

    • 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>