Class InstancesColumnComboBox.ColumnContainer
- java.lang.Object
-
- adams.gui.visualization.instances.InstancesColumnComboBox.ColumnContainer
-
- All Implemented Interfaces:
Serializable,Comparable<InstancesColumnComboBox.ColumnContainer>
- Enclosing class:
- InstancesColumnComboBox
public static class InstancesColumnComboBox.ColumnContainer extends Object implements Serializable, Comparable<InstancesColumnComboBox.ColumnContainer>
Container for storing column name and- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected intm_Columnthe column index.protected Stringm_Namethe column name.protected Stringm_NameLowerCasethe lower case name.
-
Constructor Summary
Constructors Constructor Description ColumnContainer(String name, int column)Initializes the container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(InstancesColumnComboBox.ColumnContainer o)Compares itself to the other container.intgetColumn()Returns the column index.StringgetName()Returns the name of the column.StringgetNameLowerCase()Returns the name of the column in lowercase.StringtoString()Returns the name and index of the column as string representation.
-
-
-
Constructor Detail
-
ColumnContainer
public ColumnContainer(String name, int column)
Initializes the container.- Parameters:
name- the name of the columncolumn- the column index
-
-
Method Detail
-
getName
public String getName()
Returns the name of the column.- Returns:
- the name
-
getNameLowerCase
public String getNameLowerCase()
Returns the name of the column in lowercase.- Returns:
- the name in lowercase
-
getColumn
public int getColumn()
Returns the column index.- Returns:
- the index
-
compareTo
public int compareTo(InstancesColumnComboBox.ColumnContainer o)
Compares itself to the other container.- Specified by:
compareToin interfaceComparable<InstancesColumnComboBox.ColumnContainer>- Parameters:
o- the other container to compare against- Returns:
- less than zero, zero or greater than zero if this container is less than, equal or greater than the other one
-
-