Record Class AudioSet
java.lang.Object
java.lang.Record
nl.pim16aap2.animatedarchitecture.core.audio.AudioSet
- Record Components:
activeAudio- The audio to use while the animation is active. Taking a structure as an example, this could be sound of the scraping of the bottom part of the structure along the floor.endAudio- The audio to use at the end of the animation when it is shutting down. Looking at a structure again, this could describe the sound of the structure slamming into the structure frame.
public record AudioSet(@Nullable AudioDescription activeAudio, @Nullable AudioDescription endAudio)
extends Record
Represents a set of audio descriptions that together define the set of audio descriptions to be used in an
animation.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAudioSet(@Nullable AudioDescription activeAudio, @Nullable AudioDescription endAudio) Creates an instance of aAudioSetrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable AudioDescriptionReturns the value of theactiveAudiorecord component.@Nullable AudioDescriptionendAudio()Returns the value of theendAudiorecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AudioSet
public AudioSet(@Nullable @Nullable AudioDescription activeAudio, @Nullable @Nullable AudioDescription endAudio) Creates an instance of aAudioSetrecord class.- Parameters:
activeAudio- the value for theactiveAudiorecord componentendAudio- the value for theendAudiorecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
activeAudio
Returns the value of theactiveAudiorecord component.- Returns:
- the value of the
activeAudiorecord component
-
endAudio
Returns the value of theendAudiorecord component.- Returns:
- the value of the
endAudiorecord component
-