org.jfree.formula.typing
Class DefaultComparator

java.lang.Object
  extended by org.jfree.formula.typing.DefaultComparator
All Implemented Interfaces:
ExtendedComparator

public class DefaultComparator
extends java.lang.Object
implements ExtendedComparator

Creation-Date: 03.11.2006, 16:15:28

Author:
Thomas Morgner

Field Summary
static java.lang.Integer EQUAL
           
static java.lang.Integer LESS
           
 
Constructor Summary
DefaultComparator()
           
 
Method Summary
 java.lang.Integer compare(Type type1, java.lang.Object value1, Type type2, java.lang.Object value2)
          Returns null, if the types are not comparable and are not convertible at all.
 void inititalize(FormulaContext context)
           
 boolean isEqual(Type type1, java.lang.Object value1, Type type2, java.lang.Object value2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LESS

public static final java.lang.Integer LESS

EQUAL

public static final java.lang.Integer EQUAL
Constructor Detail

DefaultComparator

public DefaultComparator()
Method Detail

inititalize

public void inititalize(FormulaContext context)

isEqual

public boolean isEqual(Type type1,
                       java.lang.Object value1,
                       Type type2,
                       java.lang.Object value2)
Specified by:
isEqual in interface ExtendedComparator

compare

public java.lang.Integer compare(Type type1,
                                 java.lang.Object value1,
                                 Type type2,
                                 java.lang.Object value2)
Returns null, if the types are not comparable and are not convertible at all.

Specified by:
compare in interface ExtendedComparator
Parameters:
type1 -
value1 -
type2 -
value2 -
Returns: