Serializable
public class ComparatorContext extends AbstractContext
ObjectComparatorManager
. For the same type, we may need different way to
compare them. This context is used so that user can register different comparators for the same type.Modifier and Type | Field | Description |
---|---|---|
static ComparatorContext |
DEFAULT_CONTEXT |
Default comparator context with empty name and no user object.
|
Constructor | Description |
---|---|
ComparatorContext(String name) |
Creates a comparator context with a name.
|
ComparatorContext(String name,
Object object) |
Creates a comparator context with a name and a user object.
|
public static final ComparatorContext DEFAULT_CONTEXT
public ComparatorContext(String name)
name
- the name of the comparator context.