Record Class MenuTransitionContext
java.lang.Object
java.lang.Record
com.render.api.MenuTransitionContext
Describes a handled-screen transition observed by a virtual menu session.
-
Constructor Summary
ConstructorsConstructorDescriptionMenuTransitionContext(MenuHostContext previous, MenuHostContext next) Creates an instance of aMenuTransitionContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.next()Returns the value of thenextrecord component.intprevious()Returns the value of thepreviousrecord component.intfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MenuTransitionContext
Creates an instance of aMenuTransitionContextrecord class.- Parameters:
previous- the value for thepreviousrecord componentnext- the value for thenextrecord component
-
-
Method Details
-
previousTitle
-
nextTitle
-
previousSyncId
public int previousSyncId() -
nextSyncId
public int nextSyncId() -
toString
-
hashCode
-
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 withObjects::equals(Object,Object). -
previous
Returns the value of thepreviousrecord component.- Returns:
- the value of the
previousrecord component
-
next
Returns the value of thenextrecord component.- Returns:
- the value of the
nextrecord component
-