Class DefaultActorComparator

  • All Implemented Interfaces:
    ActorComparator, Comparator<Actor>

    public class DefaultActorComparator
    extends Object
    implements ActorComparator
    Simply uses the (lowercase) name of the actors for comparison.
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • DefaultActorComparator

        public DefaultActorComparator()
    • Method Detail

      • compare

        public int compare​(Actor o1,
                           Actor o2)
        For comparing actors.
        Specified by:
        compare in interface ActorComparator
        Specified by:
        compare in interface Comparator<Actor>
        Parameters:
        o1 - the first actor
        o2 - 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