Class DefaultSortProcessor

java.lang.Object
org.eclipse.nebula.widgets.pagination.collections.DefaultSortProcessor
All Implemented Interfaces:
SortProcessor

public class DefaultSortProcessor
extends java.lang.Object
implements SortProcessor
Default implementation of sort.
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected DefaultSortProcessor()  
  • Method Summary

    Modifier and Type Method Description
    static SortProcessor getInstance()  
    void sort​(java.util.List<?> list, java.lang.String sortPropertyName, int sortDirection)
    Sort the given list by using the given sort property name and direction.

    Methods inherited from class java.lang.Object

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

  • Method Details

    • getInstance

      public static SortProcessor getInstance()
    • sort

      public void sort​(java.util.List<?> list, java.lang.String sortPropertyName, int sortDirection)
      Description copied from interface: SortProcessor
      Sort the given list by using the given sort property name and direction.
      Specified by:
      sort in interface SortProcessor
      Parameters:
      list - the list to sort.
      sortPropertyName - the sort property name.
      sortDirection - the sort direction SWT.UP, {@link SWT.DOWN, SWT.NONE .