Package fr.igred.omero.meta
Class GroupWrapper.SortByName<U extends GroupWrapper>
- java.lang.Object
-
- fr.igred.omero.meta.GroupWrapper.SortByName<U>
-
- All Implemented Interfaces:
Comparator<U>
- Enclosing class:
- GroupWrapper
public static class GroupWrapper.SortByName<U extends GroupWrapper> extends Object implements Comparator<U>
Class used to sort GroupWrappers.
-
-
Constructor Summary
Constructors Constructor Description SortByName()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(U object1, U object2)
Compare 2 GroupWrappers.-
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
-
-
-
-
Method Detail
-
compare
public int compare(U object1, U object2)
Compare 2 GroupWrappers. Compare the names of the GroupWrappers.- Specified by:
compare
in interfaceComparator<U extends GroupWrapper>
- Parameters:
object1
- First object to compare.object2
- Second object to compare.- Returns:
- -1 if the name of object1 is lower than the id object2.
- 0 if the names are the same.
- 1 if the name of object1 is greater than the id of object2.
-
-