V - Generic Parameter for all Typespublic class EntityComparator<V>
extends java.lang.Object
implements java.util.Comparator<V>
| Modifier and Type | Field and Description |
|---|---|
protected SendableEntityCreator |
creator
Variable of creator.
|
static java.lang.String |
HASHCODE
Constant of HASHCODE.
|
static java.lang.String |
IDMAP
Constant of IDMAP.
|
static java.lang.String |
LIST
Constant of LIST.
|
static java.lang.String |
VALUES
Constant of HASHCODE.
|
| Constructor and Description |
|---|
EntityComparator() |
| Modifier and Type | Method and Description |
|---|---|
SortingDirection |
changeDirection() |
int |
compare(java.lang.Object o1,
java.lang.Object o2) |
int |
compareValue(java.lang.Object o1,
java.lang.Object o2)
Compare Values
|
EntityValueFactory |
getCellCreator() |
java.lang.String |
getColumn() |
SortingDirection |
getDirection() |
IdMap |
getMap() |
EntityComparator<V> |
withCellCreator(EntityValueFactory value)
The new Creator for Cells.
|
EntityComparator<V> |
withColumn(java.lang.String value) |
EntityComparator<V> |
withDirection(SortingDirection value)
Set a new Direction.
|
EntityComparator<V> |
withMap(IdMap value)
Set a new IdMap for comunicate between GUI and Model.
|
EntityComparator<V> |
withTableList(SimpleList<java.lang.Object> value)
Set a GUI TableList.
|
public static final java.lang.String IDMAP
public static final java.lang.String HASHCODE
public static final java.lang.String VALUES
public static final java.lang.String LIST
protected SendableEntityCreator creator
public EntityComparator<V> withTableList(SimpleList<java.lang.Object> value)
value - The new TbaleListpublic int compare(java.lang.Object o1,
java.lang.Object o2)
compare in interface java.util.Comparator<V>public int compareValue(java.lang.Object o1,
java.lang.Object o2)
o1 - object for compareo2 - object for comparepublic SortingDirection getDirection()
public EntityComparator<V> withDirection(SortingDirection value)
value - Direction for setpublic java.lang.String getColumn()
public EntityComparator<V> withColumn(java.lang.String value)
value - The new Column for checkingpublic EntityComparator<V> withMap(IdMap value)
value - The IdMappublic IdMap getMap()
public EntityValueFactory getCellCreator()
public EntityComparator<V> withCellCreator(EntityValueFactory value)
value - The cellCreatorpublic SortingDirection changeDirection()