Package kr.toxicity.hud.api.update
Record Class PopupUpdateEvent
java.lang.Object
java.lang.Record
kr.toxicity.hud.api.update.PopupUpdateEvent
- Record Components:
source- sourceiterator- popup iterator
- All Implemented Interfaces:
UpdateEvent
public record PopupUpdateEvent(@NotNull UpdateEvent source, @NotNull PopupIterator iterator)
extends Record
implements UpdateEvent
A handled updated event by Popup
- See Also:
-
Field Summary
Fields inherited from interface kr.toxicity.hud.api.update.UpdateEvent
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionPopupUpdateEvent(@NotNull UpdateEvent source, @NotNull PopupIterator iterator) Creates an instance of aPopupUpdateEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NotNull ObjectgetKey()Returns the key.@NotNull UpdateReasongetType()Returns update reason of event.final inthashCode()Returns a hash code value for this object.@NotNull PopupIteratoriterator()Returns the value of theiteratorrecord component.@NotNull UpdateEventsource()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PopupUpdateEvent
public PopupUpdateEvent(@NotNull @NotNull UpdateEvent source, @NotNull @NotNull PopupIterator iterator) Creates an instance of aPopupUpdateEventrecord class.
-
-
Method Details
-
getType
Description copied from interface:UpdateEventReturns update reason of event.- Specified by:
getTypein interfaceUpdateEvent- Returns:
- update event
-
getKey
Description copied from interface:UpdateEventReturns the key. Normally random uuid.- Specified by:
getKeyin interfaceUpdateEvent- Returns:
- unique key
-
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 withObjects::equals(Object,Object). -
source
Returns the value of thesourcerecord component.- Specified by:
sourcein interfaceUpdateEvent- Returns:
- the value of the
sourcerecord component
-
iterator
Returns the value of theiteratorrecord component.- Returns:
- the value of the
iteratorrecord component
-