Record Class BarForm.BoxWaveConf
java.lang.Object
java.lang.Record
com.jackmeng.halcyoninae.cosmos.components.waveform.utils.BarForm.BoxWaveConf
- Enclosing class:
- BarForm
public static record BarForm.BoxWaveConf(int barsXOffset, int barsYPad, int barsArcH, int barsArcW)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thebarsArcHrecord component.private final intThe field for thebarsArcWrecord component.private final intThe field for thebarsXOffsetrecord component.private final intThe field for thebarsYPadrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBoxWaveConf(int barsXOffset, int barsYPad, int barsArcH, int barsArcW) Creates an instance of aBoxWaveConfrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanintbarsArcH()Returns the value of thebarsArcHrecord component.intbarsArcW()Returns the value of thebarsArcWrecord component.intReturns the value of thebarsXOffsetrecord component.intbarsYPad()Returns the value of thebarsYPadrecord 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.
-
Field Details
-
barsXOffset
private final int barsXOffsetThe field for thebarsXOffsetrecord component. -
barsYPad
private final int barsYPadThe field for thebarsYPadrecord component. -
barsArcH
private final int barsArcHThe field for thebarsArcHrecord component. -
barsArcW
private final int barsArcWThe field for thebarsArcWrecord component.
-
-
Constructor Details
-
BoxWaveConf
public BoxWaveConf(int barsXOffset, int barsYPad, int barsArcH, int barsArcW) Creates an instance of aBoxWaveConfrecord class.- Parameters:
barsXOffset- the value for thebarsXOffsetrecord componentbarsYPad- the value for thebarsYPadrecord componentbarsArcH- the value for thebarsArcHrecord componentbarsArcW- the value for thebarsArcWrecord component
-
-
Method Details
-
assertNonNegative
public boolean assertNonNegative() -
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 with '=='. -
barsXOffset
public int barsXOffset()Returns the value of thebarsXOffsetrecord component.- Returns:
- the value of the
barsXOffsetrecord component
-
barsYPad
public int barsYPad()Returns the value of thebarsYPadrecord component.- Returns:
- the value of the
barsYPadrecord component
-
barsArcH
public int barsArcH()Returns the value of thebarsArcHrecord component.- Returns:
- the value of the
barsArcHrecord component
-
barsArcW
public int barsArcW()Returns the value of thebarsArcWrecord component.- Returns:
- the value of the
barsArcWrecord component
-