Record Class Sound
java.lang.Object
java.lang.Record
net.flectone.pulse.model.util.Sound
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.booleanenable()Returns the value of theenablerecord component.final booleanIndicates whether some other object is "equal to" this one.static Soundfinal inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.floatpitch()Returns the value of thepitchrecord component.toJson()final StringtoString()Returns a string representation of this record class.floatvolume()Returns the value of thevolumerecord component.
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
Sound
Creates an instance of aSoundrecord class.- Parameters:
enable- the value for theenablerecord componentvolume- the value for thevolumerecord componentpitch- the value for thepitchrecord componentcategory- the value for thecategoryrecord componentname- the value for thenamerecord component
-
-
Method Details
-
fromJson
-
toJson
-
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. -
enable
public boolean enable()Returns the value of theenablerecord component.- Returns:
- the value of the
enablerecord component
-
volume
public float volume()Returns the value of thevolumerecord component.- Returns:
- the value of the
volumerecord component
-
pitch
public float pitch()Returns the value of thepitchrecord component.- Returns:
- the value of the
pitchrecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-