public class IlvConstantComparatorFactory extends Object implements IlvComparatorFactory, Serializable
Constructor and Description |
---|
IlvConstantComparatorFactory(Comparator comparator)
Creates a comparator factory that produces the given
Comparator , independently of the model. |
Modifier and Type | Method and Description |
---|---|
Comparator |
createComparator(IlvObjectModelWithColumns model)
Returns a comparator for the objects of the given model.
|
boolean |
equals(Object other)
Compares this object to another object.
|
Comparator |
getComparator()
Returns the comparator that is used for every model.
|
int |
hashCode()
Returns a hash code that is compatible with
equals() . |
public IlvConstantComparatorFactory(Comparator comparator)
Comparator
, independently of the model.comparator
- A comparator for model objects.public Comparator createComparator(IlvObjectModelWithColumns model)
createComparator
in interface IlvComparatorFactory
model
- The model whose elements are being sorted.public boolean equals(Object other)
equals
in interface IlvComparatorFactory
equals
in class Object
public int hashCode()
equals()
.hashCode
in interface IlvComparatorFactory
hashCode
in class Object
public Comparator getComparator()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.