afreechart/src/main/java/org/afree/chart/axis/TickUnit.java
/**
     * Compares this tick unit to an arbitrary object.
     * 
     * @param object
     *            the object to compare against.
     * 
     * @return <code>1</code> if the size of the other object is less than this,
     *         <code>0</code> if both have the same size and <code>-1</code>
     *         this size is less than the others.
     */
Compares this tick unit to an arbitrary object.

@param object
the object to compare against.

@return 1 if the size of the other object is less than this,
0 if both have the same size and -1
this size is less than the others.
Compares this tick unit to an arbitrary object . @param object the object to compare against . @return 1 if the size of the other object is less than this 0 if both have the same size and - 1 this size is less than the others .
public int compareTo(Object object) {
        if (object instanceof TickUnit) {
            TickUnit other = (TickUnit) object;
            if (this.size > other.getSize()) {
                return 1;
            } else if (this.size < other.getSize()) {
                return -1;
            } else {
                return 0;
            }
        } else {
            return -1;
        }
    }
public int compareTo ( Object object ) { if ( object instanceof TickUnit ) { TickUnit other = ( TickUnit ) object ; if ( this . size > other . getSize ( ) ) { return 1 ; } else if ( this . size < other . getSize ( ) ) { return - 1 ; } else { return 0 ; } } else { return - 1 ; } }
Compares this tick unit to an arbitrary object.
Compares this tick unit to an arbitrary object .