Record Class ReservationMultiActionRequest
java.lang.Object
java.lang.Record
de.gustavblass.fsu.fmi.roombooking.dto.ReservationMultiActionRequest
- Record Components:
action- The operation that shall be performed for all of theids.ids- The identifiers of the Reservations that shall be subject to theaction.confirm- Whether the user has explicitly approved of the action, in order to rule out a misunderstanding.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumOperations available for multiple Reservations at once. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionReservationMultiActionRequest(@NonNull String action, @NonNull Long[] ids, @Nullable Boolean confirm) Creates an instance of aReservationMultiActionRequestrecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull Stringaction()Returns the value of theactionrecord component.@Nullable Booleanconfirm()Returns the value of theconfirmrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NonNull Long[]ids()Returns the value of theidsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
action
-
ids
-
confirm
-
-
Constructor Details
-
ReservationMultiActionRequest
-
-
Method Details
-
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). -
action
-
ids
-
confirm
-