Class ExperimenterWrapper.SortByLastName<U extends ExperimenterWrapper>

    • Constructor Detail

      • SortByLastName

        public SortByLastName()
    • Method Detail

      • compare

        public int compare​(U object1,
                           U object2)
        Compare 2 ExperimenterWrappers. Compare the last names of the ExperimenterWrappers.
        Specified by:
        compare in interface Comparator<U extends ExperimenterWrapper>
        Parameters:
        object1 - First object to compare.
        object2 - Second object to compare.
        Returns:
        • -1 if the last name of object1 is lower than the id object2.
        • 0 if the last names are the same.
        • 1 if the last name of object1 is greater than the id of object2.