Annotation Type SortComparator

  • @Target({METHOD,FIELD})
    public @interface SortComparator
    Specifies in-memory Set/Map sorting using a specified Comparator for sorting. NOTE : Sorting is different than ordering (see OrderBy) which is applied during the SQL SELECT. For sorting based on natural sort order, use SortNatural instead. It is illegal to combine SortComparator and SortNatural.
    See Also:
    OrderBy, SortComparator
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.Class<? extends java.util.Comparator<?>> value
      Specifies the comparator class to use.
    • Element Detail

      • value

        java.lang.Class<? extends java.util.Comparator<?>> value
        Specifies the comparator class to use.