Package com.io7m.jnoisetype.api
Interface NTSampleIndexType
-
- All Superinterfaces:
java.lang.Comparable<NTSampleIndexType>
- All Known Implementing Classes:
NTSampleIndex
@Immutable public interface NTSampleIndexType extends java.lang.Comparable<NTSampleIndexType>
The valid values for sample indices.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default charasUnsigned16()default voidcheckPreconditions()Check preconditions for the type.default intcompareTo(NTSampleIndexType other)intvalue()
-
-
-
Method Detail
-
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
default int compareTo(NTSampleIndexType other)
- Specified by:
compareToin interfacejava.lang.Comparable<NTSampleIndexType>
-
-