Interface CsvBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      java.util.Collection<java.lang.Object> getFields​()
      Retrieves the CSV elements from the CSV elements property.
      java.lang.String getRecord​()
      Retrieves the CSV line from the CSV line property.
      default void setFields​(boolean... aFields)
      Sets the CSV elements for the CSV elements property.
      default void setFields​(byte... aFields)
      Sets the CSV elements for the CSV elements property.
      default void setFields​(char... aFields)
      Sets the CSV elements for the CSV elements property.
      default void setFields​(double... aFields)
      Sets the CSV elements for the CSV elements property.
      default void setFields​(float... aFields)
      Sets the CSV elements for the CSV elements property.
      default void setFields​(int... aFields)
      Sets the CSV elements for the CSV elements property.
      default void setFields​(long... aFields)
      Sets the CSV elements for the CSV elements property.
      default void setFields​(short... aFields)
      Sets the CSV elements for the CSV elements property.
      default void setFields​(java.lang.Boolean... aFields)
      Sets the CSV elements for the CSV elements property.
      default void setFields​(java.lang.Byte... aFields)
      Sets the CSV elements for the CSV elements property.
      default void setFields​(java.lang.Character... aFields)
      Sets the CSV elements for the CSV elements property.
      default void setFields​(java.lang.Double... aFields)
      Sets the CSV elements for the CSV elements property.
      default void setFields​(java.lang.Float... aFields)
      Sets the CSV elements for the CSV elements property.
      default void setFields​(java.lang.Integer... aFields)
      Sets the CSV elements for the CSV elements property.
      default void setFields​(java.lang.Long... aFields)
      Sets the CSV elements for the CSV elements property.
      void setFields​(java.lang.Object... aFields)
      Sets the CSV elements for the CSV elements property.
      default void setFields​(java.lang.Short... aFields)
      Sets the CSV elements for the CSV elements property.
      default void setFields​(java.lang.String... aFields)
      Sets the CSV elements for the CSV elements property.
      void setFields​(java.util.Collection<java.lang.Object> aFields)
      Sets the CSV elements for the CSV elements property.
      void setRecord​(java.lang.String aRecord)
      Sets the CSV line for the CSV line property.
      java.util.List<java.lang.String> toFields​()
      Creates a list of String elements from the CSV line being set via setRecord(String) or withRecord(String).
      default java.lang.String[] toFields​(java.lang.String aRecord)
      Creates an array of Strings from the CSV line being set via setRecord(String) or withRecord(String).
      java.lang.String toRecord​()
      Creates a CSV line from the elements being set via setFields(String[]) or withFields(String[]).
      default java.lang.String toRecord​(boolean... aFields)
      Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method).
      default java.lang.String toRecord​(byte... aFields)
      Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method).
      default java.lang.String toRecord​(char... aFields)
      Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method).
      default java.lang.String toRecord​(double... aFields)
      Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method).
      default java.lang.String toRecord​(float... aFields)
      Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method).
      default java.lang.String toRecord​(int... aFields)
      Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method).
      default java.lang.String toRecord​(long... aFields)
      Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method).
      default java.lang.String toRecord​(short... aFields)
      Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method).
      default java.lang.String toRecord​(java.lang.Boolean... aFields)
      Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method).
      default java.lang.String toRecord​(java.lang.Byte... aFields)
      Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method).
      default java.lang.String toRecord​(java.lang.Character... aFields)
      Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method).
      default java.lang.String toRecord​(java.lang.Double... aFields)
      Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method).
      default java.lang.String toRecord​(java.lang.Float... aFields)
      Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method).
      default java.lang.String toRecord​(java.lang.Integer... aFields)
      Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method).
      default java.lang.String toRecord​(java.lang.Long... aFields)
      Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method).
      java.lang.String toRecord​(java.lang.Object... aFields)
      Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method).
      default java.lang.String toRecord​(java.lang.Short... aFields)
      To record.
      default java.lang.String toRecord​(java.lang.String... aFields)
      Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method).
      java.lang.String toRecord​(java.util.Collection<java.lang.Object> aFields)
      Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method).
      java.lang.String toString​()
      The String being build by the builder upon the settings of the attributes.
      default java.lang.String toString​(java.lang.Object... aFields)
      Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method).
      default java.lang.String toString​(java.lang.String... aFields)
      Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method).
      java.lang.String[] toStrings​()
      Creates an array of Strings from the CSV line being set via setRecord(String) or withRecord(String).
      java.lang.String[] toStrings​(java.lang.String aRecord)
      Convenience method for the toFields(String) method.
      default CsvBuilder withCommentPrefixes​(java.lang.String... aCommentPrefixes)
      Sets the prefixes used to identify CSV lines to be ignored.
      default CsvBuilder withCsvEscapeMode​(CsvEscapeMode aCsvEscapeMode)
      Sets the rows CsvEscapeMode to use returns this builder as of the Builder-Pattern.
      default CsvBuilder withDelimiter​(char aDelimiterChar)
      default CsvBuilder withFields​(boolean... aFields)
      Sets the CSV elements for the CSV elements property.
      default CsvBuilder withFields​(byte... aFields)
      Sets the CSV elements for the CSV elements property.
      default CsvBuilder withFields​(char... aFields)
      Sets the CSV elements for the CSV elements property.
      default CsvBuilder withFields​(double... aFields)
      Sets the CSV elements for the CSV elements property.
      default CsvBuilder withFields​(float... aFields)
      Sets the CSV elements for the CSV elements property.
      default CsvBuilder withFields​(int... aFields)
      Sets the CSV elements for the CSV elements property.
      default CsvBuilder withFields​(long... aFields)
      Sets the CSV elements for the CSV elements property.
      default CsvBuilder withFields​(short... aFields)
      Sets the CSV elements for the CSV elements property.
      default CsvBuilder withFields​(java.lang.Boolean... aFields)
      Sets the CSV elements for the CSV elements property.
      default CsvBuilder withFields​(java.lang.Byte... aFields)
      Sets the CSV elements for the CSV elements property.
      default CsvBuilder withFields​(java.lang.Character... aFields)
      Sets the CSV elements for the CSV elements property.
      default CsvBuilder withFields​(java.lang.Double... aFields)
      Sets the CSV elements for the CSV elements property.
      default CsvBuilder withFields​(java.lang.Float... aFields)
      Sets the CSV elements for the CSV elements property.
      default CsvBuilder withFields​(java.lang.Integer... aFields)
      Sets the CSV elements for the CSV elements property.
      default CsvBuilder withFields​(java.lang.Long... aFields)
      Sets the CSV elements for the CSV elements property.
      default CsvBuilder withFields​(java.lang.Object... aFields)
      Sets the CSV elements for the CSV elements property.
      default CsvBuilder withFields​(java.lang.Short... aFields)
      Sets the CSV elements for the CSV elements property.
      default CsvBuilder withFields​(java.lang.String... aFields)
      Sets the CSV elements for the CSV elements property.
      default CsvBuilder withFields​(java.util.Collection<java.lang.Object> aFields)
      Sets the CSV elements for the CSV elements property.
      default CsvBuilder withRecord​(java.lang.String aRecord)
      Sets the CSV line for the CSV line property.
      default CsvBuilder withTrim​(boolean isTrimRecords)
      • Methods inherited from interface org.refcodes.mixin.DelimiterAccessor

        getDelimiter
      • Methods inherited from interface org.refcodes.mixin.DelimiterAccessor.DelimiterMutator

        setDelimiter
      • Methods inherited from interface org.refcodes.mixin.TrimAccessor

        isTrim
      • Methods inherited from interface org.refcodes.mixin.TrimAccessor.TrimMutator

        setTrim
    • Method Detail

      • withTrim

        default CsvBuilder withTrim​(boolean isTrimRecords)
        Specified by:
        withTrim in interface org.refcodes.mixin.TrimAccessor.TrimBuilder<CsvMixin>
      • withDelimiter

        default CsvBuilder withDelimiter​(char aDelimiterChar)
        Specified by:
        withDelimiter in interface org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<CsvMixin>
      • withCommentPrefixes

        default CsvBuilder withCommentPrefixes​(java.lang.String... aCommentPrefixes)
        Sets the prefixes used to identify CSV lines to be ignored.
        Specified by:
        withCommentPrefixes in interface CsvMixin
        Parameters:
        aCommentPrefixes - The prefixes used to identify CSV lines to be ignored.
        Returns:
        The instance on which this method has been invoked as of the builder pattern.
      • getRecord

        java.lang.String getRecord​()
        Retrieves the CSV line from the CSV line property.
        Returns:
        The CSV line stored by the CSV line property.
      • setRecord

        void setRecord​(java.lang.String aRecord)
        Sets the CSV line for the CSV line property.
        Parameters:
        aRecord - The CSV line to be stored by the CSV line property.
      • withRecord

        default CsvBuilder withRecord​(java.lang.String aRecord)
        Sets the CSV line for the CSV line property.
        Parameters:
        aRecord - The CSV line to be stored by the CSV line property.
        Returns:
        The builder for applying multiple build operations.
      • setFields

        void setFields​(java.lang.Object... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
      • setFields

        default void setFields​(boolean... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
      • setFields

        default void setFields​(byte... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
      • setFields

        default void setFields​(short... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
      • setFields

        default void setFields​(int... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
      • setFields

        default void setFields​(long... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
      • setFields

        default void setFields​(float... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
      • setFields

        default void setFields​(double... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
      • setFields

        default void setFields​(char... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
      • withFields

        default CsvBuilder withFields​(boolean... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
        Returns:
        The builder for applying multiple build operations.
      • withFields

        default CsvBuilder withFields​(byte... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
        Returns:
        The builder for applying multiple build operations.
      • withFields

        default CsvBuilder withFields​(short... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
        Returns:
        The builder for applying multiple build operations.
      • withFields

        default CsvBuilder withFields​(int... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
        Returns:
        The builder for applying multiple build operations.
      • withFields

        default CsvBuilder withFields​(long... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
        Returns:
        The builder for applying multiple build operations.
      • withFields

        default CsvBuilder withFields​(float... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
        Returns:
        The builder for applying multiple build operations.
      • withFields

        default CsvBuilder withFields​(double... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
        Returns:
        The builder for applying multiple build operations.
      • withFields

        default CsvBuilder withFields​(char... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
        Returns:
        The builder for applying multiple build operations.
      • setFields

        default void setFields​(java.lang.Boolean... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
      • setFields

        default void setFields​(java.lang.Byte... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
      • setFields

        default void setFields​(java.lang.Short... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
      • setFields

        default void setFields​(java.lang.Integer... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
      • setFields

        default void setFields​(java.lang.Long... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
      • setFields

        default void setFields​(java.lang.Float... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
      • setFields

        default void setFields​(java.lang.Double... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
      • setFields

        default void setFields​(java.lang.Character... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
      • setFields

        default void setFields​(java.lang.String... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
      • withFields

        default CsvBuilder withFields​(java.lang.Object... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
        Returns:
        The builder for applying multiple build operations.
      • withFields

        default CsvBuilder withFields​(java.lang.Boolean... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
        Returns:
        The builder for applying multiple build operations.
      • withFields

        default CsvBuilder withFields​(java.lang.Byte... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
        Returns:
        The builder for applying multiple build operations.
      • withFields

        default CsvBuilder withFields​(java.lang.Short... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
        Returns:
        The builder for applying multiple build operations.
      • withFields

        default CsvBuilder withFields​(java.lang.Integer... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
        Returns:
        The builder for applying multiple build operations.
      • withFields

        default CsvBuilder withFields​(java.lang.Long... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
        Returns:
        The builder for applying multiple build operations.
      • withFields

        default CsvBuilder withFields​(java.lang.Float... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
        Returns:
        The builder for applying multiple build operations.
      • withFields

        default CsvBuilder withFields​(java.lang.Double... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
        Returns:
        The builder for applying multiple build operations.
      • withFields

        default CsvBuilder withFields​(java.lang.Character... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
        Returns:
        The builder for applying multiple build operations.
      • withFields

        default CsvBuilder withFields​(java.lang.String... aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
        Returns:
        The builder for applying multiple build operations.
      • getFields

        java.util.Collection<java.lang.Object> getFields​()
        Retrieves the CSV elements from the CSV elements property.
        Returns:
        The CSV elements stored by the CSV elements property.
      • setFields

        void setFields​(java.util.Collection<java.lang.Object> aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
      • withFields

        default CsvBuilder withFields​(java.util.Collection<java.lang.Object> aFields)
        Sets the CSV elements for the CSV elements property.
        Parameters:
        aFields - The CSV elements to be stored by the CSV elements property.
        Returns:
        The builder for applying multiple build operations.
      • toFields

        java.util.List<java.lang.String> toFields​()
                                           throws java.lang.IllegalStateException
        Creates a list of String elements from the CSV line being set via setRecord(String) or withRecord(String).
        Returns:
        The elements created from the CSV line.
        Throws:
        java.lang.IllegalStateException - Thrown in case no elements have been set via the withFields(String[]) or setFields(String[]) methods.
      • toRecord

        default java.lang.String toRecord​(boolean... aFields)
        Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method). Still changing for example the delimiter via withDelimiter(char) can cause side effects! For avoiding thread race conditions / side effects regarding the fields (and the resulting record), use this method instead of the combination of withFields(String...) with toRecord().
        Parameters:
        aFields - The CSV elements to be converted into a record.
        Returns:
        The CSV line created from the fields.
      • toRecord

        default java.lang.String toRecord​(byte... aFields)
        Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method). Still changing for example the delimiter via withDelimiter(char) can cause side effects! For avoiding thread race conditions / side effects regarding the fields (and the resulting record), use this method instead of the combination of withFields(String...) with toRecord().
        Parameters:
        aFields - The CSV elements to be converted into a record.
        Returns:
        The CSV line created from the fields.
      • toRecord

        default java.lang.String toRecord​(short... aFields)
        Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method). Still changing for example the delimiter via withDelimiter(char) can cause side effects! For avoiding thread race conditions / side effects regarding the fields (and the resulting record), use this method instead of the combination of withFields(String...) with toRecord().
        Parameters:
        aFields - The CSV elements to be converted into a record.
        Returns:
        The CSV line created from the fields.
      • toRecord

        default java.lang.String toRecord​(int... aFields)
        Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method). Still changing for example the delimiter via withDelimiter(char) can cause side effects! For avoiding thread race conditions / side effects regarding the fields (and the resulting record), use this method instead of the combination of withFields(String...) with toRecord().
        Parameters:
        aFields - The CSV elements to be converted into a record.
        Returns:
        The CSV line created from the fields.
      • toRecord

        default java.lang.String toRecord​(long... aFields)
        Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method). Still changing for example the delimiter via withDelimiter(char) can cause side effects! For avoiding thread race conditions / side effects regarding the fields (and the resulting record), use this method instead of the combination of withFields(String...) with toRecord().
        Parameters:
        aFields - The CSV elements to be converted into a record.
        Returns:
        The CSV line created from the fields.
      • toRecord

        default java.lang.String toRecord​(float... aFields)
        Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method). Still changing for example the delimiter via withDelimiter(char) can cause side effects! For avoiding thread race conditions / side effects regarding the fields (and the resulting record), use this method instead of the combination of withFields(String...) with toRecord().
        Parameters:
        aFields - The CSV elements to be converted into a record.
        Returns:
        The CSV line created from the fields.
      • toRecord

        default java.lang.String toRecord​(double... aFields)
        Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method). Still changing for example the delimiter via withDelimiter(char) can cause side effects! For avoiding thread race conditions / side effects regarding the fields (and the resulting record), use this method instead of the combination of withFields(String...) with toRecord().
        Parameters:
        aFields - The CSV elements to be converted into a record.
        Returns:
        The CSV line created from the fields.
      • toRecord

        default java.lang.String toRecord​(char... aFields)
        Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method). Still changing for example the delimiter via withDelimiter(char) can cause side effects! For avoiding thread race conditions / side effects regarding the fields (and the resulting record), use this method instead of the combination of withFields(String...) with toRecord().
        Parameters:
        aFields - The CSV elements to be converted into a record.
        Returns:
        The CSV line created from the fields.
      • toRecord

        java.lang.String toRecord​(java.lang.Object... aFields)
        Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method). Still changing for example the delimiter via withDelimiter(char) can cause side effects! For avoiding thread race conditions / side effects regarding the fields (and the resulting record), use this method instead of the combination of withFields(String...) with toRecord().
        Parameters:
        aFields - The CSV elements to be converted into a record.
        Returns:
        The CSV line created from the fields.
      • toString

        default java.lang.String toString​(java.lang.Object... aFields)
        Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method). Still changing for example the delimiter via withDelimiter(char) can cause side effects! For avoiding thread race conditions / side effects regarding the fields (and the resulting record), use this method instead of the combination of withFields(String...) with toRecord().
        Parameters:
        aFields - The CSV elements to be converted into a record.
        Returns:
        The CSV line created from the fields.
      • toRecord

        java.lang.String toRecord​(java.util.Collection<java.lang.Object> aFields)
        Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method). Still changing for example the delimiter via withDelimiter(char) can cause side effects! For avoiding thread race conditions / side effects regarding the fields (and the resulting record), use this method instead of the combination of withFields(String...) with toRecord().
        Parameters:
        aFields - The CSV elements to be converted into a record.
        Returns:
        The CSV line created from the fields.
      • toRecord

        default java.lang.String toRecord​(java.lang.Boolean... aFields)
        Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method). Still changing for example the delimiter via withDelimiter(char) can cause side effects! For avoiding thread race conditions / side effects regarding the fields (and the resulting record), use this method instead of the combination of withFields(String...) with toRecord().
        Parameters:
        aFields - The CSV elements to be converted into a record.
        Returns:
        The CSV line created from the fields.
      • toRecord

        default java.lang.String toRecord​(java.lang.Byte... aFields)
        Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method). Still changing for example the delimiter via withDelimiter(char) can cause side effects! For avoiding thread race conditions / side effects regarding the fields (and the resulting record), use this method instead of the combination of withFields(String...) with toRecord().
        Parameters:
        aFields - The CSV elements to be converted into a record.
        Returns:
        The CSV line created from the fields.
      • toRecord

        default java.lang.String toRecord​(java.lang.Short... aFields)
        To record.
        Parameters:
        aFields - the fields
        Returns:
        the string
      • toRecord

        default java.lang.String toRecord​(java.lang.Integer... aFields)
        Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method). Still changing for example the delimiter via withDelimiter(char) can cause side effects! For avoiding thread race conditions / side effects regarding the fields (and the resulting record), use this method instead of the combination of withFields(String...) with toRecord().
        Parameters:
        aFields - The CSV elements to be converted into a record.
        Returns:
        The CSV line created from the fields.
      • toRecord

        default java.lang.String toRecord​(java.lang.Long... aFields)
        Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method). Still changing for example the delimiter via withDelimiter(char) can cause side effects! For avoiding thread race conditions / side effects regarding the fields (and the resulting record), use this method instead of the combination of withFields(String...) with toRecord().
        Parameters:
        aFields - The CSV elements to be converted into a record.
        Returns:
        The CSV line created from the fields.
      • toRecord

        default java.lang.String toRecord​(java.lang.Float... aFields)
        Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method). Still changing for example the delimiter via withDelimiter(char) can cause side effects! For avoiding thread race conditions / side effects regarding the fields (and the resulting record), use this method instead of the combination of withFields(String...) with toRecord().
        Parameters:
        aFields - The CSV elements to be converted into a record.
        Returns:
        The CSV line created from the fields.
      • toRecord

        default java.lang.String toRecord​(java.lang.Double... aFields)
        Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method). Still changing for example the delimiter via withDelimiter(char) can cause side effects! For avoiding thread race conditions / side effects regarding the fields (and the resulting record), use this method instead of the combination of withFields(String...) with toRecord().
        Parameters:
        aFields - The CSV elements to be converted into a record.
        Returns:
        The CSV line created from the fields.
      • toRecord

        default java.lang.String toRecord​(java.lang.Character... aFields)
        Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method). Still changing for example the delimiter via withDelimiter(char) can cause side effects! For avoiding thread race conditions / side effects regarding the fields (and the resulting record), use this method instead of the combination of withFields(String...) with toRecord().
        Parameters:
        aFields - The CSV elements to be converted into a record.
        Returns:
        The CSV line created from the fields.
      • toRecord

        default java.lang.String toRecord​(java.lang.String... aFields)
        Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method). Still changing for example the delimiter via withDelimiter(char) can cause side effects! For avoiding thread race conditions / side effects regarding the fields (and the resulting record), use this method instead of the combination of withFields(String...) with toRecord().
        Parameters:
        aFields - The CSV elements to be converted into a record.
        Returns:
        The CSV line created from the fields.
      • toString

        default java.lang.String toString​(java.lang.String... aFields)
        Creates a CSV line from the fields being provided This method is to be side effect free in terms of the fields (and the resulting record) is not part of the state for this instance (from the point of view of this method). Still changing for example the delimiter via withDelimiter(char) can cause side effects! For avoiding thread race conditions / side effects regarding the fields (and the resulting record), use this method instead of the combination of withFields(String...) with toRecord().
        Parameters:
        aFields - The CSV elements to be converted into a record.
        Returns:
        The CSV line created from the fields.
      • toStrings

        java.lang.String[] toStrings​()
        Creates an array of Strings from the CSV line being set via setRecord(String) or withRecord(String). It should return the same result as an array as a call to toFields(). Returns null if the record is a comment as of CsvMixin.isComment(String).
        Returns:
        The elements created from the CSV line or null if the record is a comment.
      • toFields

        default java.lang.String[] toFields​(java.lang.String aRecord)
        Creates an array of Strings from the CSV line being set via setRecord(String) or withRecord(String). It should return the same result as an array as a call to toFields(). Returns null if the record is a comment as of CsvMixin.isComment(String). This method is to be side effect free in terms of the record (and the resulting fields) is not part of the state for this instance (from the point of view of this method). Still changing for example the delimiter via withDelimiter(char) can cause side effects! For avoiding thread race conditions / side effects regarding the record (and the resulting fields), use this method instead of the combination of withRecord(String) with toStrings().
        Parameters:
        aRecord - The CSV line to be stored by the CSV line property.
        Returns:
        The elements created from the CSV line or null if the record is a comment.
      • toStrings

        java.lang.String[] toStrings​(java.lang.String aRecord)
        Convenience method for the toFields(String) method.
        Parameters:
        aRecord - The CSV line to be stored by the CSV line property.
        Returns:
        The elements created from the CSV line or null if the record is a comment.
      • toString

        java.lang.String toString​()
        The String being build by the builder upon the settings of the attributes. It should return the same result as a call to toRecord().
        Overrides:
        toString in class java.lang.Object
        Returns:
        The according resulting String