Class ClientSideSorting


  • public class ClientSideSorting
    extends java.lang.Object
    Utility class to sort a query result on the client side.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<ResultProperties> getSortedResult()
      Performs the sorting and returns a sorted copy of the property list.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClientSideSorting

        public ClientSideSorting​(java.util.List<ResultProperties> resultToSort,
                                 java.util.Map<java.lang.String,​SortDirection> columns)
        Constructor.
        Parameters:
        resultToSort - result to sort
        columns - columns and directions to use for sorting
    • Method Detail

      • getSortedResult

        public java.util.List<ResultProperties> getSortedResult()
        Performs the sorting and returns a sorted copy of the property list.
        Returns:
        sorted copy of property list