Class Frequency


  • public final class Frequency
    extends Object
    Immutable class representing a frequency in Hz.
    Author:
    Hendrik Schreiber
    • Method Detail

      • getFrequency

        public int getFrequency()
      • getInstance

        public static Frequency getInstance​(int freq)
        Parameters:
        freq - frequency in Hz
        Returns:
        frequency object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toKHzString

        public String toKHzString()
        Returns:
        String formatted as kHz value with appended unit (kHz).