Class IntegerComparator

  • All Implemented Interfaces:
    Comparator<Integer>

    public class IntegerComparator
    extends Object
    implements Comparator<Integer>
    Comparator for comparing integers. By default, it will sort integers ascending but it can be changed by setting property boolean ascending to false;
    Since:
    30/01/14
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • IntegerComparator

        public IntegerComparator()
    • Method Detail

      • isAscending

        public boolean isAscending()

        isAscending

        Returns:
        a boolean.
      • setAscending

        public void setAscending​(boolean ascending)

        Setter for the field ascending.

        Parameters:
        ascending - a boolean.