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

## infomat.vectorspace
Class IObjectGroup.IObjectComparator

    java.lang.Object
      infomat.vectorspace.IObjectGroup.IObjectComparator

All Implemented Interfaces:
  java.util.Comparator

Enclosing class:
  IObjectGroup

    private class IObjectGroup.IObjectComparator

extends java.lang.Object
implements java.util.Comparator

A private class that is used to order the IObjects. The order depends on the value in the "objectOrderValueMap" parameter of the IObjectGroup. If the two IObject:s are equal in "objectOrder" they are sorted lexiographically.

Field Summary
`private IObjectGroup` | `cog`

Constructor Summary
`IObjectGroup.IObjectComparator(IObjectGroup cog)`

Method Summary
`int` | `compare(java.lang.Object o1, java.lang.Object o2)` Compares two IObject:s and returns 1, 0 or -1

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

Methods inherited from interface java.util.Comparator
`equals`

Field Detail

### cog

    private IObjectGroup cog

Constructor Detail

### IObjectGroup.IObjectComparator

    public IObjectGroup.IObjectComparator(IObjectGroup cog)

Method Detail

### compare

    public int compare(java.lang.Object o1,
                       java.lang.Object o2)

  Compares two IObject:s and returns 1, 0 or -1

  Specified by:
    `compare` in interface `java.util.Comparator`
  Parameters:
    `o1` - a IObject
    `o2` - a IObject
  Returns:
    int

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