java.lang.Object
java.lang.Record
org.snapfx.close.DockCloseResult
- Record Components:
request- original request contextappliedBehavior- resolved behavior that was applied;nullwhen canceledcanceled- whether the request was canceled
public record DockCloseResult(DockCloseRequest request, DockCloseBehavior appliedBehavior, boolean canceled)
extends Record
Describes the outcome of a processed close request.
-
Constructor Summary
ConstructorsConstructorDescriptionDockCloseResult(DockCloseRequest request, DockCloseBehavior appliedBehavior, boolean canceled) Creates an instance of aDockCloseResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theappliedBehaviorrecord component.booleancanceled()Returns the value of thecanceledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.request()Returns the value of therequestrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DockCloseResult
public DockCloseResult(DockCloseRequest request, DockCloseBehavior appliedBehavior, boolean canceled) Creates an instance of aDockCloseResultrecord class.- Parameters:
request- the value for therequestrecord componentappliedBehavior- the value for theappliedBehaviorrecord componentcanceled- the value for thecanceledrecord 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 '=='. -
request
Returns the value of therequestrecord component.- Returns:
- the value of the
requestrecord component
-
appliedBehavior
Returns the value of theappliedBehaviorrecord component.- Returns:
- the value of the
appliedBehaviorrecord component
-
canceled
public boolean canceled()Returns the value of thecanceledrecord component.- Returns:
- the value of the
canceledrecord component
-