Class 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 Detail

      • stringPropertyComparator

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

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