com.atlassian.bamboo.util.comparator
Class StringPropertyComparator<T>

java.lang.Object
  extended by com.atlassian.bamboo.util.comparator.SinglePropertyComparator<T,String>
      extended by com.atlassian.bamboo.util.comparator.StringPropertyComparator<T>
All Implemented Interfaces:
Comparator<T>

public class StringPropertyComparator<T>
extends SinglePropertyComparator<T,String>

Comparator that compares object using a specified property returning a String value.


Method Summary
static
<T> Comparator<T>
stringPropertyCaseInsensitiveComparator(Class<T> beanClass, String propertyName)
           
static
<T> Comparator<T>
stringPropertyComparator(Class<T> beanClass, String propertyName)
           
 
Methods inherited from class com.atlassian.bamboo.util.comparator.SinglePropertyComparator
compare
 
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
 

Method Detail

stringPropertyComparator

public static <T> Comparator<T> stringPropertyComparator(@NotNull
                                                         Class<T> beanClass,
                                                         @NotNull
                                                         String propertyName)

stringPropertyCaseInsensitiveComparator

public static <T> Comparator<T> stringPropertyCaseInsensitiveComparator(@NotNull
                                                                        Class<T> beanClass,
                                                                        @NotNull
                                                                        String propertyName)


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.