Package com.io7m.jnoisetype.api
Interface NTInstrumentIndexType
- All Superinterfaces:
java.lang.Comparable<NTInstrumentIndexType>
- All Known Implementing Classes:
NTInstrumentIndex
@Immutable public interface NTInstrumentIndexType extends java.lang.Comparable<NTInstrumentIndexType>
The valid values for instrument indices.
-
Method Summary
Modifier and Type Method Description default charasUnsigned16()default voidcheckPreconditions()Check preconditions for the type.default intcompareTo(NTInstrumentIndexType other)intvalue()
-
Method Details
-
value
@Parameter int value()- Returns:
- The raw value in the range
[0, 0xffff]
-
checkPreconditions
@Check default void checkPreconditions()Check preconditions for the type. -
asUnsigned16
default char asUnsigned16()- Returns:
- The value as an unsigned 16-bit integer
-
compareTo
- Specified by:
compareToin interfacejava.lang.Comparable<NTInstrumentIndexType>
-