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 ItemByDegreeDegreeComparator

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

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

Used to compare items by degree using ItemByDegree.

Author:
  paclat
See Also:
  `theory.smart.ebusines.shoppingadvisor.ItemByDegree`

Method Summary
`int` | `compare(java.lang.Object arg1, java.lang.Object arg2)` Simple comparaison method
`static ItemByDegreeDegreeComparator` | `getInstance()` It is an ItemByDegreeDegreeComparator instance caching mechanism it returns a new instance if no instance exists or an existing instance.

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)

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

### getInstance

    public static ItemByDegreeDegreeComparator getInstance()

  It is an ItemByDegreeDegreeComparator instance caching mechanism it returns a new instance if no instance exists or an existing instance.
  Returns:
    An instance of a comparator

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.