Package dev.turboism.sdk.ui.context
Record Class PanelTabSelection
java.lang.Object
java.lang.Record
dev.turboism.sdk.ui.context.PanelTabSelection
public record PanelTabSelection(long hostGeneration, String panelId, boolean floating)
extends Record
Immutable, generation-bound panel-tab context supplied to a Tab action.
-
Constructor Summary
ConstructorsConstructorDescriptionPanelTabSelection(long hostGeneration, String panelId, boolean floating) Creates an instance of aPanelTabSelectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanfloating()Returns the value of thefloatingrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thehostGenerationrecord component.panelId()Returns the value of thepanelIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PanelTabSelection
Creates an instance of aPanelTabSelectionrecord class.- Parameters:
hostGeneration- the value for thehostGenerationrecord componentpanelId- the value for thepanelIdrecord componentfloating- the value for thefloatingrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
hostGeneration
public long hostGeneration()Returns the value of thehostGenerationrecord component.- Returns:
- the value of the
hostGenerationrecord component
-
panelId
Returns the value of thepanelIdrecord component.- Returns:
- the value of the
panelIdrecord component
-
floating
public boolean floating()Returns the value of thefloatingrecord component.- Returns:
- the value of the
floatingrecord component
-