Package adams.flow.core
Interface ActorComparator
-
- All Superinterfaces:
Comparator<Actor>
- All Known Implementing Classes:
DefaultActorComparator
public interface ActorComparator extends Comparator<Actor>
Interface for comparators designed to compare actors.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
compare(Actor o1, Actor o2)
For comparing actors.-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
int compare(Actor o1, Actor o2)
For comparing actors.- Specified by:
compare
in interfaceComparator<Actor>
- Parameters:
o1
- the first actoro2
- the second actor- Returns:
- less than, equal to, or greater than if the first actor is less than, equal to, or greater than the second actor
-
-