Package velox.gui.colors
Record Class ColorsConfigItem.GuiConfig
java.lang.Object
java.lang.Record
velox.gui.colors.ColorsConfigItem.GuiConfig
- Enclosing class:
- ColorsConfigItem
public static record ColorsConfigItem.GuiConfig(ColorsConfigItem.BackgroundStyle backgroundStyle, boolean ovalAdjustButton, boolean adjustLabelSize, ColorsConfigItem.InsetsStyle insetsStyle)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGuiConfig(ColorsConfigItem.BackgroundStyle backgroundStyle, boolean ovalAdjustButton, boolean adjustLabelSize, ColorsConfigItem.InsetsStyle insetsStyle) Creates an instance of aGuiConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theadjustLabelSizerecord component.Returns the value of thebackgroundStylerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinsetsStylerecord component.static ColorsConfigItem.GuiConfigbooleanReturns the value of theovalAdjustButtonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GuiConfig
public GuiConfig(ColorsConfigItem.BackgroundStyle backgroundStyle, boolean ovalAdjustButton, boolean adjustLabelSize, ColorsConfigItem.InsetsStyle insetsStyle) Creates an instance of aGuiConfigrecord class.- Parameters:
backgroundStyle- the value for thebackgroundStylerecord componentovalAdjustButton- the value for theovalAdjustButtonrecord componentadjustLabelSize- the value for theadjustLabelSizerecord componentinsetsStyle- the value for theinsetsStylerecord component
-
-
Method Details
-
ofLegacy
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
backgroundStyle
Returns the value of thebackgroundStylerecord component.- Returns:
- the value of the
backgroundStylerecord component
-
ovalAdjustButton
public boolean ovalAdjustButton()Returns the value of theovalAdjustButtonrecord component.- Returns:
- the value of the
ovalAdjustButtonrecord component
-
adjustLabelSize
public boolean adjustLabelSize()Returns the value of theadjustLabelSizerecord component.- Returns:
- the value of the
adjustLabelSizerecord component
-
insetsStyle
Returns the value of theinsetsStylerecord component.- Returns:
- the value of the
insetsStylerecord component
-