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

## theory.smart.ebusiness.shoppingadvisor
Class QualityDegreeComparator

    java.lang.Object
      |
      +--theory.smart.ebusiness.shoppingadvisor.QualityDegreeComparator

public class QualityDegreeComparator
extends java.lang.Object
implements com.sun.java.util.collections.Comparator

Compares two qualities by degree

See Also:
  `Quality`

Method Summary
`int` | `compare(java.lang.Object arg1, java.lang.Object arg2)`
`static QualityDegreeComparator` | `getInstance()` Caches an instance of QualityDegreeComparator

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

Method Detail

### compare

    public int compare(java.lang.Object arg1,
                       java.lang.Object arg2)

  Specified by:
    compare in interface com.sun.java.util.collections.Comparator
  Returns:
    arg1.getDegree()-arg2.getDegree()

### getInstance

    public static QualityDegreeComparator getInstance()

  Caches an instance of QualityDegreeComparator
  Returns:
    a new instance if none exist or an existing instance

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

© Copyright 2000 bea Systems, Inc. All rights reserved.