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 int
The field for thebarsArcH
record component.private final int
The field for thebarsArcW
record component.private final int
The field for thebarsXOffset
record component.private final int
The field for thebarsYPad
record component. -
Constructor Summary
ConstructorsConstructorDescriptionBoxWaveConf
(int barsXOffset, int barsYPad, int barsArcH, int barsArcW) Creates an instance of aBoxWaveConf
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
barsArcH()
Returns the value of thebarsArcH
record component.int
barsArcW()
Returns the value of thebarsArcW
record component.int
Returns the value of thebarsXOffset
record component.int
barsYPad()
Returns the value of thebarsYPad
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
barsXOffset
private final int barsXOffsetThe field for thebarsXOffset
record component. -
barsYPad
private final int barsYPadThe field for thebarsYPad
record component. -
barsArcH
private final int barsArcHThe field for thebarsArcH
record component. -
barsArcW
private final int barsArcWThe field for thebarsArcW
record component.
-
-
Constructor Details
-
BoxWaveConf
public BoxWaveConf(int barsXOffset, int barsYPad, int barsArcH, int barsArcW) Creates an instance of aBoxWaveConf
record class.- Parameters:
barsXOffset
- the value for thebarsXOffset
record componentbarsYPad
- the value for thebarsYPad
record componentbarsArcH
- the value for thebarsArcH
record componentbarsArcW
- the value for thebarsArcW
record 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 thebarsXOffset
record component.- Returns:
- the value of the
barsXOffset
record component
-
barsYPad
public int barsYPad()Returns the value of thebarsYPad
record component.- Returns:
- the value of the
barsYPad
record component
-
barsArcH
public int barsArcH()Returns the value of thebarsArcH
record component.- Returns:
- the value of the
barsArcH
record component
-
barsArcW
public int barsArcW()Returns the value of thebarsArcW
record component.- Returns:
- the value of the
barsArcW
record component
-