com.atlassian.bamboo.util.comparator
Class SinglePropertyComparator<T,P>

java.lang.Object
  extended by 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
SinglePropertyComparator(Class<T> beanClass, String propertyName, Class<P> propertyReturnType, Comparator<P> propertyComparator)
           
 
Method Summary
 int compare(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
 

Constructor Detail

SinglePropertyComparator

public SinglePropertyComparator(@NotNull
                                Class<T> beanClass,
                                @NotNull
                                String propertyName,
                                @NotNull
                                Class<P> propertyReturnType,
                                @Nullable
                                Comparator<P> propertyComparator)
Method Detail

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.