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:
java.util.Comparator<T>
Direct Known Subclasses:
StringPropertyComparator

public class SinglePropertyComparator<T,P>
extends java.lang.Object
implements java.util.Comparator<T>

Author:
Krystian Brazulewicz

Constructor Summary
SinglePropertyComparator(java.lang.Class<T> beanClass, java.lang.String propertyName, java.lang.Class<P> propertyReturnType, java.util.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
                                java.lang.Class<T> beanClass,
                                @NotNull
                                java.lang.String propertyName,
                                @NotNull
                                java.lang.Class<P> propertyReturnType,
                                @Nullable
                                java.util.Comparator<P> propertyComparator)
Method Detail

compare

public int compare(T o1,
                   T o2)
Specified by:
compare in interface java.util.Comparator<T>


Copyright © 2011 Atlassian. All Rights Reserved.