Class SetInfo.SetSpecComparator

java.lang.Object
org.dlese.dpc.repository.SetInfo.SetSpecComparator
All Implemented Interfaces:
Comparator
Enclosing class:
SetInfo

public static class SetInfo.SetSpecComparator extends Object implements Comparator
Implements Comparator to enable sorting by setSpec.
Author:
John Weatherley
  • Constructor Details

    • SetSpecComparator

      public SetSpecComparator()
  • Method Details

    • compare

      public int compare(Object O1, Object O2) throws ClassCastException
      Campares the setSpec field.
      Specified by:
      compare in interface Comparator
      Parameters:
      O1 - A SetInfo Object
      O2 - A SetInfo Object
      Returns:
      A negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
      Throws:
      ClassCastException - If Object is not SetInfo