Module org.snapfx
Package org.snapfx.persistence
Record Class DockLayoutSnapshotService.DockFloatingWindowSnapshot
java.lang.Object
java.lang.Record
org.snapfx.persistence.DockLayoutSnapshotService.DockFloatingWindowSnapshot
- Record Components:
layout- floating-layout JSON objectx- preferred x position, ornully- preferred y position, ornullwidth- preferred width, ornullheight- preferred height, ornullalwaysOnTop- preferred always-on-top state, ornull
- Enclosing class:
DockLayoutSnapshotService
public static record DockLayoutSnapshotService.DockFloatingWindowSnapshot(com.google.gson.JsonObject layout, Double x, Double y, Double width, Double height, Boolean alwaysOnTop)
extends Record
Parsed floating-window snapshot payload.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealwaysOnToprecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.height()Returns the value of theheightrecord component.com.google.gson.JsonObjectlayout()Returns the value of thelayoutrecord component.final StringtoString()Returns a string representation of this record class.width()Returns the value of thewidthrecord component.x()Returns the value of thexrecord component.y()Returns the value of theyrecord component.
-
Constructor Details
-
DockFloatingWindowSnapshot
public DockFloatingWindowSnapshot(com.google.gson.JsonObject layout, Double x, Double y, Double width, Double height, Boolean alwaysOnTop) Creates an instance of aDockFloatingWindowSnapshotrecord class.- Parameters:
layout- the value for thelayoutrecord componentx- the value for thexrecord componenty- the value for theyrecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord componentalwaysOnTop- the value for thealwaysOnToprecord 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). -
layout
public com.google.gson.JsonObject layout()Returns the value of thelayoutrecord component.- Returns:
- the value of the
layoutrecord component
-
x
Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
width
Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
alwaysOnTop
Returns the value of thealwaysOnToprecord component.- Returns:
- the value of the
alwaysOnToprecord component
-