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.
    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>
        o1 - the first actor
        o2 - the second actor
        less than, equal to, or greater than if the first actor is less than, equal to, or greater than the second actor