stella
Class AbstractTarget.TargetComparator

java.lang.Object
  extended by stella.AbstractTarget.TargetComparator
All Implemented Interfaces:
Comparator
Enclosing class:
AbstractTarget

public abstract static class AbstractTarget.TargetComparator
extends Object
implements Comparator

A base comparator for comparing target definitions.


Constructor Summary
AbstractTarget.TargetComparator()
           
 
Method Summary
 int compare(Object o1, Object o2)
          Throws an exception if either of the objects is not a target definition.
protected abstract  int compareTargets(TargetDefinition t1, TargetDefinition t2)
          Compares two targets.
 boolean equals(Object o1, Object o2)
          Forks to object equals.
 
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

AbstractTarget.TargetComparator

public AbstractTarget.TargetComparator()
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Throws an exception if either of the objects is not a target definition. Otherwise it forks to the abstract method #compreTargets

Specified by:
compare in interface Comparator

compareTargets

protected abstract int compareTargets(TargetDefinition t1,
                                      TargetDefinition t2)
Compares two targets.


equals

public boolean equals(Object o1,
                      Object o2)
Forks to object equals.