# Class Sorter.CInteger

public class CInteger
extends Sorter.AInteger

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
  The stored integer value

##

CInteger (int)
  Constructor for the class

##

getValue ()
  Accessor method for the stored integer value
makeOrder ()
  Factory method to make the matching ordering strategy for this object

##

value

    private int value

  The stored integer value.

##

CInteger

    public  CInteger(int value)

  Constructor for the class.

  Parameters:
    value - The integer value held.
    color - The normal display color

##

getValue

    public int getValue()

  Accessor method for the stored integer value.

  Returns:

makeOrder

    public static AOrder makeOrder()

  Factory method to make the matching ordering strategy for this object.

  Returns:
    An AOrder strategy that works with this class of objects.