Package dev.turboism.sdk.event.cubism
Record Class DrawableVisibilityEvent.On
java.lang.Object
java.lang.Record
dev.turboism.sdk.event.cubism.DrawableVisibilityEvent.On
- All Implemented Interfaces:
DrawableVisibilityEvent,EventBus.TurboismEvent,TurboismEvent
- Enclosing interface:
- DrawableVisibilityEvent
public static record DrawableVisibilityEvent.On(Drawable drawable, boolean oldVisible, boolean newVisible)
extends Record
implements DrawableVisibilityEvent
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.turboism.sdk.event.cubism.DrawableVisibilityEvent
DrawableVisibilityEvent.After, DrawableVisibilityEvent.Before, DrawableVisibilityEvent.On -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondrawable()Returns the value of thedrawablerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thenewVisiblerecord component.booleanReturns the value of theoldVisiblerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
On
Creates an instance of aOnrecord class.- Parameters:
drawable- the value for thedrawablerecord componentoldVisible- the value for theoldVisiblerecord componentnewVisible- the value for thenewVisiblerecord 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 '=='. -
drawable
Returns the value of thedrawablerecord component.- Specified by:
drawablein interfaceDrawableVisibilityEvent- Returns:
- the value of the
drawablerecord component
-
oldVisible
public boolean oldVisible()Returns the value of theoldVisiblerecord component.- Returns:
- the value of the
oldVisiblerecord component
-
newVisible
public boolean newVisible()Returns the value of thenewVisiblerecord component.- Returns:
- the value of the
newVisiblerecord component
-