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

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

public class StringPropertyComparator<T>
extends SinglePropertyComparator<T,java.lang.String>

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


Method Summary
static
<T> java.util.Comparator<T>
stringPropertyCaseInsensitiveComparator(java.lang.Class<T> beanClass, java.lang.String propertyName)
           
static
<T> java.util.Comparator<T>
stringPropertyComparator(java.lang.Class<T> beanClass, java.lang.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> java.util.Comparator<T> stringPropertyComparator(@NotNull
                                                                   java.lang.Class<T> beanClass,
                                                                   @NotNull
                                                                   java.lang.String propertyName)

stringPropertyCaseInsensitiveComparator

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


Copyright © 2011 Atlassian. All Rights Reserved.