# Class Sorter.ReverseOrder

public class ReverseOrder
extends Sorter.AOrder

A decorated ordering strategy that swaps the inputs to enable reverse sorting. Note that this is not the same as negating the normal operations.

##

aOrder

##

ReverseOrder (AOrder)
  Constructor for the class

##

eq (Object, Object)
  Defined as eq(y,
ge (Object, Object)
  Defined as ge(y,x);
gt (Object, Object)
  Defined as gt(y,x);
le (Object, Object)
  Defined as le(y,x);
lt (Object, Object)
  Defined as lt(y,x);
ne (Object, Object)
  Defined as ne(y,x);
setOrder (AOrder)
  Accessor method for the decoree

##

aOrder

    private AOrder aOrder

##

ReverseOrder

    public  ReverseOrder(AOrder aOrder)

  Constructor for the class.

  Parameters:
    aOrder - The decoree.

##

eq

    public boolean eq(Object x, Object y)

  Defined as eq(y,.x).

  Parameters:
    x -
    y -
  Returns:

ne

    public boolean ne(Object x, Object y)

  Defined as ne(y,x);

  Parameters:
    x -
    y -
  Returns:

lt

    public boolean lt(Object x, Object y)

  Defined as lt(y,x);

  Parameters:
    x -
    y -
  Returns:

le

    public boolean le(Object x, Object y)

  Defined as le(y,x);

  Parameters:
    x -
    y -
  Returns:

gt

    public boolean gt(Object x, Object y)

  Defined as gt(y,x);

  Parameters:
    x -
    y -
  Returns:

ge

    public boolean ge(Object x, Object y)

  Defined as ge(y,x);

  Parameters:
    x -
    y -
  Returns:

setOrder

    public void setOrder(AOrder aOrder)

  Accessor method for the decoree.

  Parameters:
    aOrder - The decorated AOrder object.