Record Class OpusSound.DecodedSound
java.lang.Object
java.lang.Record
io.github.kosmx.emotes.common.opus.OpusSound.DecodedSound
- Enclosing class:
OpusSound
-
Constructor Summary
ConstructorsConstructorDescriptionDecodedSound(short[] samples, float normalization) Creates an instance of aDecodedSoundrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatReturns the value of thenormalizationrecord component.short[]samples()Returns the value of thesamplesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DecodedSound
public DecodedSound(short[] samples, float normalization) Creates an instance of aDecodedSoundrecord class.- Parameters:
samples- the value for thesamplesrecord componentnormalization- the value for thenormalizationrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
samples
public short[] samples()Returns the value of thesamplesrecord component.- Returns:
- the value of the
samplesrecord component
-
normalization
public float normalization()Returns the value of thenormalizationrecord component.- Returns:
- the value of the
normalizationrecord component
-