OCPsoft Common API 1.0.3.Final

org.ocpsoft.common.pattern
Class WeightedComparator

java.lang.Object
  extended by org.ocpsoft.common.pattern.WeightedComparator
All Implemented Interfaces:
java.util.Comparator<Weighted>

public class WeightedComparator
extends java.lang.Object
implements java.util.Comparator<Weighted>

Compares Weighted objects.

Author:
Lincoln Baxter, III

Constructor Summary
WeightedComparator()
           
 
Method Summary
 int compare(Weighted left, Weighted right)
           
 
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
 

Constructor Detail

WeightedComparator

public WeightedComparator()
Method Detail

compare

public int compare(Weighted left,
                   Weighted right)
Specified by:
compare in interface java.util.Comparator<Weighted>

OCPsoft Common API 1.0.3.Final

Copyright © 2012 OCPsoft. All Rights Reserved.