Class FormatterConfiguration

java.lang.Object
net.sf.anupam.csv.formatters.FormatterConfiguration
All Implemented Interfaces:
Comparable<FormatterConfiguration>

public class FormatterConfiguration extends Object implements Comparable<FormatterConfiguration>
FormatConfiguration.
Since:
1.8
Version:
$Revision$
Author:
Anupam Sengupta
  • Constructor Details

    • FormatterConfiguration

      public FormatterConfiguration()
      Constructor for FormatConfiguration.
  • Method Details

    • compareTo

      public int compareTo(FormatterConfiguration other)
      Compares this formatter configuration to another configuration for ordering purposes. The comparison is based on the formatter name.
      Specified by:
      compareTo in interface Comparable<FormatterConfiguration>
      Parameters:
      other - the other configuration to compare against
      Returns:
      0 if the two configurations are equal, -1 if this configuration ranks "lower", +1 if this configuration ranks "higher"
      See Also:
    • toString

      public String toString()
      Returns a string representation of this formatter configuration for debugging purposes only.
      Overrides:
      toString in class Object
      Returns:
      a string representation of this formatter configuration
      See Also:
    • hashCode

      public int hashCode()
      Computes the hash code for this formatter configuration. The has code is based on the formatter configuration's name.
      Overrides:
      hashCode in class Object
      Returns:
      the hash code
      See Also:
    • equals

      public boolean equals(Object other)
      Compares this formatter configuration to another configuration for equality. Equality test is based on the formatter configuration name.
      Overrides:
      equals in class Object
      Parameters:
      other - the other configuration to compare to
      Returns:
      true if the configurations are equal, false other wise
      See Also:
    • getFormatterName

      public String getFormatterName()
      Returns value of the formatName.
      Returns:
      Returns the formatName.
    • setFormatterName

      public void setFormatterName(String formatName)
      Sets value of the formatName.
      Parameters:
      formatName - The formatName to set.
    • getFormatterClass

      public String getFormatterClass()
      Returns value of the formatterClass.
      Returns:
      Returns the formatterClass.
    • setFormatterClass

      public void setFormatterClass(String formatterClass)
      Sets value of the formatterClass.
      Parameters:
      formatterClass - The formatterClass to set.
    • isConstructionNeeded

      public boolean isConstructionNeeded()
      Returns value of the constructionNeeded.
      Returns:
      Returns the constructionNeeded.
    • setConstructionNeeded

      public void setConstructionNeeded(boolean constructionNeeded)
      Sets value of the constructionNeeded.
      Parameters:
      constructionNeeded - The constructionNeeded to set.