com.realtime.crossfire.jxclient.spells
Class SpellComparator

java.lang.Object
  extended by com.realtime.crossfire.jxclient.spells.SpellComparator
All Implemented Interfaces:
java.io.Serializable, java.util.Comparator<Spell>

public class SpellComparator
extends java.lang.Object
implements java.util.Comparator<Spell>, java.io.Serializable

A Comparator to compare Spell instances by spell path and name.

See Also:
Serialized Form

Field Summary
private static long serialVersionUID
          The serial version UID.
 
Constructor Summary
SpellComparator()
           
 
Method Summary
 int compare(Spell o1, Spell o2)
          
 
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

serialVersionUID

private static final long serialVersionUID
The serial version UID.

See Also:
Constant Field Values
Constructor Detail

SpellComparator

public SpellComparator()
Method Detail

compare

public int compare(@NotNull
                   Spell o1,
                   @NotNull
                   Spell o2)

Specified by:
compare in interface java.util.Comparator<Spell>