Package edu.claflin.finder.logic.comp

# Class GraphSizeComparator

java.lang.Object
edu.claflin.finder.logic.comp.GraphSizeComparator

All Implemented Interfaces:
  `Comparator<Graph>`

public class GraphSizeComparator extends Object implements Comparator<Graph>

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `private boolean`
  `descending`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GraphSizeComparator(boolean descending)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `compare(Graph g1, Graph g2)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

  ### Methods inherited from interface java.util.Comparator

  `equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong`

- ## Field Details

  - ### descending

    private boolean descending

- ## Constructor Details

  - ### GraphSizeComparator

    public GraphSizeComparator(boolean descending)

- ## Method Details

  - ### compare

    public int compare(Graph g1, Graph g2)
    Specified by:
      `compare` in interface `Comparator<Graph>`