com.atlassian.bamboo.util.comparator
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SinglePropertyComparator
public SinglePropertyComparator(@NotNull
Class<T> beanClass,
@NotNull
String propertyName,
@NotNull
Class<P> propertyReturnType,
@Nullable
Comparator<P> propertyComparator)
compare
public int compare(T o1,
T o2)
- Specified by:
compare
in interface Comparator<T>
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.