JIDE 3.5.15

com.jidesoft.comparator
Class ComparatorContext

java.lang.Object
  extended by com.jidesoft.converter.AbstractContext
      extended by com.jidesoft.comparator.ComparatorContext
All Implemented Interfaces:
Serializable

public class ComparatorContext
extends AbstractContext

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.

See Also:
Serialized Form

Field Summary
static ComparatorContext DEFAULT_CONTEXT
          Default comparator context with empty name and no user object.
 
Constructor Summary
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.
 
Method Summary
 
Methods inherited from class com.jidesoft.converter.AbstractContext
equals, getName, getUserObject, hashCode, setName, setUserObject, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_CONTEXT

public static final ComparatorContext DEFAULT_CONTEXT
Default comparator context with empty name and no user object.

Constructor Detail

ComparatorContext

public ComparatorContext(String name)
Creates a comparator context with a name.

Parameters:
name - the name of the comparator context.

ComparatorContext

public ComparatorContext(String name,
                         Object object)
Creates a comparator context with a name and a user object.

Parameters:
name - the name of the comparator context.
object - the user object. It can be used as any object to pass informaton along.

JIDE 3.5.15