public class BankNumber extends java.lang.Object implements java.lang.Comparable<BankNumber>
This class provides table row sorting for the bank column in the soundcheck’s instrument table.
The cell content is a string consisting of MSB, “/”, and LSB. But the sort criterion shall be the full bank number.
The row may also contain an empty string, if it belongs to a category or sub category.
Modifier and Type | Field and Description |
---|---|
java.lang.Integer |
bankNumber |
private java.lang.String |
display |
Constructor and Description |
---|
BankNumber(java.lang.Integer bankNumber,
java.lang.String display)
Creates a comparable (sortable) wrapper object for a table cell with a bank number or category.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(BankNumber o) |
java.lang.String |
toString()
Returns the value to displayed in the table cell.
|
public java.lang.Integer bankNumber
private java.lang.String display
public BankNumber(java.lang.Integer bankNumber, java.lang.String display)
Creates a comparable (sortable) wrapper object for a table cell with a bank number or category.
bankNumber
- The full bank number, or (in case of a category) just any number.display
- The cell content to be displayed.public int compareTo(BankNumber o)
compareTo
in interface java.lang.Comparable<BankNumber>
public java.lang.String toString()
Returns the value to displayed in the table cell.
toString
in class java.lang.Object