org.alicebot.server.core.targeting
Class TargetActivationsComparator

java.lang.Object
  extended by org.alicebot.server.core.targeting.TargetActivationsComparator
All Implemented Interfaces:
java.util.Comparator

public class TargetActivationsComparator
extends java.lang.Object
implements java.util.Comparator

Compares two Targets based on their activation counts are unique.

Since:
4.1.5
Author:
Noel Bush
See Also:
Target#hashCode}

Constructor Summary
TargetActivationsComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 boolean equals(java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TargetActivationsComparator

public TargetActivationsComparator()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface java.util.Comparator
Overrides:
equals in class java.lang.Object