Forge - Parent 2.0.0-SNAPSHOT

org.jboss.forge.container.util
Class WeightedComparator

java.lang.Object
  extended by org.jboss.forge.container.util.WeightedComparator
All Implemented Interfaces:
Comparator<Weighted>

public class WeightedComparator
extends Object
implements Comparator<Weighted>

Compares Weighted objects.

Author:
Lincoln Baxter, III

Field Summary
static Comparator<Weighted> INSTANCE
           
 
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
 

Field Detail

INSTANCE

public static final Comparator<Weighted> INSTANCE
Method Detail

compare

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

Forge - Parent 2.0.0-SNAPSHOT

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.