Package com.onec.desktop
Record Class DesktopManifest.Window
java.lang.Object
java.lang.Record
com.onec.desktop.DesktopManifest.Window
- Enclosing class:
DesktopManifest
public static record DesktopManifest.Window(int width, int height, int minWidth, int minHeight, boolean resizable, boolean center, boolean maximized)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionWindow(int width, int height, int minWidth, int minHeight, boolean resizable, boolean center, boolean maximized) Creates an instance of aWindowrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancenter()Returns the value of thecenterrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.booleanReturns the value of themaximizedrecord component.intReturns the value of theminHeightrecord component.intminWidth()Returns the value of theminWidthrecord component.booleanReturns the value of theresizablerecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
Window
public Window(int width, int height, int minWidth, int minHeight, boolean resizable, boolean center, boolean maximized) Creates an instance of aWindowrecord class.- Parameters:
width- the value for thewidthrecord componentheight- the value for theheightrecord componentminWidth- the value for theminWidthrecord componentminHeight- the value for theminHeightrecord componentresizable- the value for theresizablerecord componentcenter- the value for thecenterrecord componentmaximized- the value for themaximizedrecord 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 with '=='. -
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
minWidth
public int minWidth()Returns the value of theminWidthrecord component.- Returns:
- the value of the
minWidthrecord component
-
minHeight
public int minHeight()Returns the value of theminHeightrecord component.- Returns:
- the value of the
minHeightrecord component
-
resizable
public boolean resizable()Returns the value of theresizablerecord component.- Returns:
- the value of the
resizablerecord component
-
center
public boolean center()Returns the value of thecenterrecord component.- Returns:
- the value of the
centerrecord component
-
maximized
public boolean maximized()Returns the value of themaximizedrecord component.- Returns:
- the value of the
maximizedrecord component
-