Package com.io7m.jnoisetype.api
Class NTGenerators
- java.lang.Object
-
- com.io7m.jnoisetype.api.NTGenerators
-
public final class NTGenerators extends java.lang.ObjectStandard 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 NTGeneratorfind(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()
-
-
-
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
-
-