| |
|
| java.lang.Object com.jidesoft.converter.AbstractContext com.jidesoft.comparator.ComparatorContext
ComparatorContext | public class ComparatorContext extends AbstractContext (Code) | | The context object used by 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.
|
Constructor Summary | |
public | ComparatorContext(String name) Creates a comparator context with a name. | public | ComparatorContext(String name, Object object) Creates a comparator contex with a name and a user object.
Parameters: name - the name of the comparator context. Parameters: object - the user object. |
DEFAULT_CONTEXT | final public static ComparatorContext DEFAULT_CONTEXT(Code) | | Default comparator context with empty name and no user object.
|
ComparatorContext | public ComparatorContext(String name)(Code) | | Creates a comparator context with a name.
Parameters: name - the name of the comparator context. |
ComparatorContext | public ComparatorContext(String name, Object object)(Code) | | Creates a comparator contex with a name and a user object.
Parameters: name - the name of the comparator context. Parameters: object - the user object. It can be used as any object to pass informaton along. |
|
|
|