# Class Sorter.GCInteger

public class GCInteger
extends Sorter.GraphicComparable

A concrete GraphicComparable that holds an integer value. During the compare method, the color of this object and the other GCInteger's color are temporarily set to the compare color, the running thread is paused for 200 milliseconds, and then the color are reverted to their original values. a.compare(b) is defined as (value of a) < (value of b).

##

value

##

GCInteger (int, Color, Color)
  Constructor for the class

##

compare (IComparable)
  returns this
getValue ()
  Accessor method for the stored integer value

##

value

    private int value

##

GCInteger

    public  GCInteger(int value, Color color, Color compareColor)

  Constructor for the class.

  Parameters:
    value - The integer value held.
    color - The normal display color
    compareColor - the color used during the compare operation.

##

compare

    public boolean compare(IComparable iComparable)

  returns this.value < parameter.value. Also temporarily changes both objects' color to the compare color for 200 milliseconds.

  Parameters:
    iComparable - The object being compared against.
  Returns:
    this.value < param.value

getValue

    public int getValue()

  Accessor method for the stored integer value.

  Returns: