Class NTGenerators


  • public final class NTGenerators
    extends java.lang.Object
    Standard generators.
    See Also:
    "SoundFontⓡ Technical Specification 2.04, §8.1 Generator Enumerators Defined"
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static NTGenerator find​(int value)
      Find an operator with the given index.
      static java.util.Optional<NTGenerator> findForName​(java.lang.String name)
      Find an operator with the given name.
      static java.util.Map<java.lang.Integer,​NTGenerator> generators()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • find

        public static NTGenerator find​(int value)
        Find an operator with the given index.
        Parameters:
        value - The index
        Returns:
        The located operator, or a value with "unknown" as the operator name
      • findForName

        public static java.util.Optional<NTGenerator> findForName​(java.lang.String name)
        Find an operator with the given name.
        Parameters:
        name - The name
        Returns:
        The located operator
      • generators

        public static java.util.Map<java.lang.Integer,​NTGenerator> generators()
        Returns:
        A read-only map of the known specified generators