java.lang.Object
java.lang.Record
org.snapfx.close.DockCloseRequest
- Record Components:
source- where the request originatednodes- nodes affected by the requestfloatingWindow- source floating window, if applicabledefaultBehavior- configured default behavior
public record DockCloseRequest(DockCloseSource source, List<DockNode> nodes, DockFloatingWindow floatingWindow, DockCloseBehavior defaultBehavior)
extends Record
Contains context about a close request before it is handled.
-
Constructor Summary
ConstructorsConstructorDescriptionDockCloseRequest(DockCloseSource source, List<DockNode> nodes, DockFloatingWindow floatingWindow, DockCloseBehavior defaultBehavior) Creates a normalized close-request snapshot. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefaultBehaviorrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefloatingWindowrecord component.final inthashCode()Returns a hash code value for this object.nodes()Returns the value of thenodesrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DockCloseRequest
public DockCloseRequest(DockCloseSource source, List<DockNode> nodes, DockFloatingWindow floatingWindow, DockCloseBehavior defaultBehavior) Creates a normalized close-request snapshot.
-
-
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). -
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
nodes
Returns the value of thenodesrecord component.- Returns:
- the value of the
nodesrecord component
-
floatingWindow
Returns the value of thefloatingWindowrecord component.- Returns:
- the value of the
floatingWindowrecord component
-
defaultBehavior
Returns the value of thedefaultBehaviorrecord component.- Returns:
- the value of the
defaultBehaviorrecord component
-