Class SortComparator

    • Constructor Detail

      • SortComparator

        public SortComparator​(int columnIndex,
                              boolean ascending,
                              Language language)
        Parameters:
        columnIndex -
        ascending -
        language -
    • Method Detail

      • setSortAsc

        public void setSortAsc​(boolean ascending)
        Sort Ascending
        Parameters:
        ascending - if true sort ascending
      • compare

        public int compare​(Object o1,
                           Object o2)
        Compare Data of two entities
        Specified by:
        compare in interface Comparator<Object>
        Parameters:
        o1 - object
        o2 - object
        Returns:
        comparator
      • getColumnIndex

        public int getColumnIndex()