Class SinglePropertyComparator<T,P>
- java.lang.Object
-
- com.atlassian.bamboo.util.comparator.SinglePropertyComparator<T,P>
-
- All Implemented Interfaces:
Comparator<T>
- Direct Known Subclasses:
StringPropertyComparator
public class SinglePropertyComparator<T,P> extends Object implements Comparator<T>
- Author:
- Krystian Brazulewicz
-
-
Constructor Summary
Constructors Constructor Description SinglePropertyComparator(@NotNull Class<T> beanClass, @NotNull String propertyName, @NotNull Class<P> propertyReturnType, @Nullable Comparator<P> propertyComparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(T o1, T o2)-
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(T o1, T o2)
- Specified by:
comparein interfaceComparator<T>
-
-