Package org.fest.test

Class PersonCaseInsensitiveNameComparator

  • All Implemented Interfaces:
    java.util.Comparator<Person>

    public class PersonCaseInsensitiveNameComparator
    extends java.lang.Object
    implements java.util.Comparator<Person>
    A Person comparator comparing name case insensitively.
    Author:
    Joel Costigliola
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(Person p1, Person p2)  
      • 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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Constructor Detail

      • PersonCaseInsensitiveNameComparator

        public PersonCaseInsensitiveNameComparator()
    • Method Detail

      • compare

        public int compare​(Person p1,
                           Person p2)
        Specified by:
        compare in interface java.util.Comparator<Person>