com.fdsapi.arrays
Class ConditionalBaseComparator

java.lang.Object
  |
  +--com.fdsapi.arrays.ConditionalBase
        |
        +--com.fdsapi.arrays.ConditionalBaseComparator
All Implemented Interfaces:
java.util.Comparator, Conditional
Direct Known Subclasses:
ConditionalGreaterThan, ConditionalLessThan

public abstract class ConditionalBaseComparator
extends ConditionalBase
implements java.util.Comparator

This is the base class for any Conditional that implements the Comparator interface. Examples are <, and > Conditionals.

View Code


Field Summary
protected  java.lang.Comparable comparisonValue
          Object that the column value will be compared against.
 
Fields inherited from class com.fdsapi.arrays.ConditionalBase
col
 
Constructor Summary
ConditionalBaseComparator(int col, java.lang.Comparable comparisonValue)
          Constructor that takes the column to compare as well as a Comparable object that it will be compared against.
ConditionalBaseComparator(int col, java.lang.Comparable comparisonValue, Conditional nextConditional)
          Constructor that takes the column to compare as well as a Comparable object that it will be compared against, and the next conditional in the decorator chain.
 
Method Summary
 java.lang.String toString()
          String representation of this Object
 
Methods inherited from class com.fdsapi.arrays.ConditionalBase
getConditionalString, getNextConditional, isTrue, isTrueThis
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
compare, equals
 
Methods inherited from interface com.fdsapi.arrays.Conditional
getType
 

Field Detail

comparisonValue

protected java.lang.Comparable comparisonValue
Object that the column value will be compared against.

Constructor Detail

ConditionalBaseComparator

public ConditionalBaseComparator(int col,
                                 java.lang.Comparable comparisonValue)
Constructor that takes the column to compare as well as a Comparable object that it will be compared against.


ConditionalBaseComparator

public ConditionalBaseComparator(int col,
                                 java.lang.Comparable comparisonValue,
                                 Conditional nextConditional)
Constructor that takes the column to compare as well as a Comparable object that it will be compared against, and the next conditional in the decorator chain.

Method Detail

toString

public java.lang.String toString()
String representation of this Object

Overrides:
toString in class java.lang.Object