org.jfree.formula.typing

Class DefaultComparator

public class DefaultComparator extends Object implements ExtendedComparator

Creation-Date: 03.11.2006, 16:15:28

Author: Thomas Morgner

Field Summary
static IntegerEQUAL
static IntegerLESS
Constructor Summary
DefaultComparator()
Method Summary
Integercompare(Type type1, Object value1, Type type2, Object value2)
Returns null, if the types are not comparable and are not convertible at all.
voidinititalize(FormulaContext context)
booleanisEqual(Type type1, Object value1, Type type2, Object value2)

Field Detail

EQUAL

public static final Integer EQUAL

LESS

public static final Integer LESS

Constructor Detail

DefaultComparator

public DefaultComparator()

Method Detail

compare

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

Parameters: type1 value1 type2 value2

Returns:

inititalize

public void inititalize(FormulaContext context)

isEqual

public boolean isEqual(Type type1, Object value1, Type type2, Object value2)