Package net.paulhertz.pixelaudio.example

# Class WaveSynthEditor.CompareWaveData

java.lang.Object
net.paulhertz.pixelaudio.example.WaveSynthEditor.CompareWaveData

All Implemented Interfaces:
  `Comparator<WaveData>`

Enclosing class:
  WaveSynthEditor

public class WaveSynthEditor.CompareWaveData extends Object implements Comparator<WaveData>
Comparator class for sorting waveDataList by frequency or phase

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `(package private) boolean`
  `isCompareFrequency`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CompareWaveData()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `compare(WaveData wd1, WaveData wd2)`

  ### 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

  - ### isCompareFrequency

    boolean isCompareFrequency

- ## Constructor Details

  - ### CompareWaveData

    public CompareWaveData()

- ## Method Details

  - ### compare

    public int compare(WaveData wd1, WaveData wd2)
    Specified by:
      `compare` in interface `Comparator<WaveData>`