Package net.sf.anupam.csv.formatters
Class FormatterConfiguration
java.lang.Object
net.sf.anupam.csv.formatters.FormatterConfiguration
- All Implemented Interfaces:
Comparable<FormatterConfiguration>
FormatConfiguration.
- Since:
- 1.8
- Version:
- $Revision$
- Author:
- Anupam Sengupta
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(FormatterConfiguration other) Compares this formatter configuration to another configuration for ordering purposes.booleanCompares this formatter configuration to another configuration for equality.Returns value of the formatterClass.Returns value of the formatName.inthashCode()Computes the hash code for this formatter configuration.booleanReturns value of the constructionNeeded.voidsetConstructionNeeded(boolean constructionNeeded) Sets value of the constructionNeeded.voidsetFormatterClass(String formatterClass) Sets value of the formatterClass.voidsetFormatterName(String formatName) Sets value of the formatName.toString()Returns a string representation of this formatter configuration for debugging purposes only.
-
Constructor Details
-
FormatterConfiguration
public FormatterConfiguration()Constructor for FormatConfiguration.
-
-
Method Details
-
compareTo
Compares this formatter configuration to another configuration for ordering purposes. The comparison is based on the formatter name.- Specified by:
compareToin interfaceComparable<FormatterConfiguration>- Parameters:
other- the other configuration to compare against- Returns:
0if the two configurations are equal,-1if this configuration ranks "lower",+1if this configuration ranks "higher"- See Also:
-
toString
Returns a string representation of this formatter configuration for debugging purposes only. -
hashCode
public int hashCode()Computes the hash code for this formatter configuration. The has code is based on the formatter configuration's name. -
equals
Compares this formatter configuration to another configuration for equality. Equality test is based on the formatter configuration name. -
getFormatterName
Returns value of the formatName.- Returns:
- Returns the formatName.
-
setFormatterName
Sets value of the formatName.- Parameters:
formatName- The formatName to set.
-
getFormatterClass
Returns value of the formatterClass.- Returns:
- Returns the formatterClass.
-
setFormatterClass
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.
-