java.lang.Object
java.lang.Record
org.jpo.eventbus.UnsavedUpdatesDialogRequest
- Record Components:
pictureCollection
- the PictureCollection that has the unsaved changesnextRequest
- the request to fire after saving or dismissing but not cancelling
public record UnsavedUpdatesDialogRequest(@NotNull PictureCollection pictureCollection, @NotNull Object nextRequest)
extends Record
This request must bring up the unsaved changes dialog
and allow the user to save the changes. After a successful save or
Dismiss choice the nextRequest is fired.
-
Constructor Summary
ConstructorDescriptionUnsavedUpdatesDialogRequest
(@NotNull PictureCollection pictureCollection, @NotNull Object nextRequest) Creates an instance of aUnsavedUpdatesDialogRequest
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NotNull Object
Returns the value of thenextRequest
record component.@NotNull PictureCollection
Returns the value of thepictureCollection
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
UnsavedUpdatesDialogRequest
public UnsavedUpdatesDialogRequest(@NotNull @NotNull PictureCollection pictureCollection, @NotNull @NotNull Object nextRequest) Creates an instance of aUnsavedUpdatesDialogRequest
record class.- Parameters:
pictureCollection
- the value for thepictureCollection
record componentnextRequest
- the value for thenextRequest
record 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. All components in this record class are compared withObjects::equals(Object,Object)
. -
pictureCollection
Returns the value of thepictureCollection
record component.- Returns:
- the value of the
pictureCollection
record component
-
nextRequest
Returns the value of thenextRequest
record component.- Returns:
- the value of the
nextRequest
record component
-