Package com.io7m.jnoisetype.api
Class NTGenerators
java.lang.Object
com.io7m.jnoisetype.api.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
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()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
find
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
Find an operator with the given name.- Parameters:
name- The name- Returns:
- The located operator
-
generators
- Returns:
- A read-only map of the known specified generators
-