public static class SortableAndSearchableWrapperTableModel.SortContainer extends Object implements Comparable<SortableAndSearchableWrapperTableModel.SortContainer>
| Modifier and Type | Field and Description |
|---|---|
protected int |
m_Index
the index of the value.
|
protected Comparable |
m_Value
the value to sort.
|
| Constructor and Description |
|---|
SortContainer(Comparable value,
int index)
Initializes the container.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SortableAndSearchableWrapperTableModel.SortContainer o)
Compares this object with the specified object for order.
|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
int |
getIndex()
Returns the original index of the item.
|
Comparable |
getValue()
Returns the value to sort on.
|
String |
toString()
Returns a string representation of the sort container.
|
protected Comparable m_Value
protected int m_Index
public SortContainer(Comparable value, int index)
value - the value to sort onindex - the original indexpublic Comparable getValue()
public int getIndex()
public int compareTo(SortableAndSearchableWrapperTableModel.SortContainer o)
compareTo in interface Comparable<SortableAndSearchableWrapperTableModel.SortContainer>o - the object to be compared.ClassCastException - if the specified object's type prevents it
from being compared to this object.public boolean equals(Object obj)
equals in class Objectobj - the reference object with which to compare.ClassCastException - if the specified object's type prevents it
from being compared to this object.Copyright © 2017. All Rights Reserved.