Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.jxml.quick.qmap
Class QComparable

    java.lang.Object
      |
      +--com.jxml.quick.qmap.QComparable

All Implemented Interfaces:
  Comparable, QKeyed

Direct Known Subclasses:
  QComparableList

public abstract class QComparable
extends Object
implements QKeyed, Comparable

Subclasses of QComparable themselves serve as the key in the map container.

Constructor Summary
`QComparable()`
`QComparable(Map container)`

Method Summary
`void` | `attach(Map container)` Set the map which holds this object and add this object to the map.
`abstract int` | `compareTo(Object o)`
`Object` | `key()` Returns the key used to locate this object.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### QComparable

    public QComparable()

### QComparable

    public QComparable(Map container)

Method Detail

### key

    public Object key()

  Description copied from interface: `QKeyed`
  Returns the key used to locate this object.
  Specified by:
    `key` in interface `QKeyed`

### attach

    public void attach(Map container)

  Description copied from interface: `QKeyed`
  Set the map which holds this object and add this object to the map. (Set to null when removed from a container.)
  Specified by:
    `attach` in interface `QKeyed`

### compareTo

    public abstract int compareTo(Object o)

  Specified by:
    `compareTo` in interface `Comparable`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD