Record Class RouteProps
java.lang.Object
java.lang.Record
megalodonte.base.route.RouteProps
- Record Components:
screenWidth- initial screen width (before scaling)screenHeight- initial screen height (before scaling)name- screen title displayed in the title barscreenIsExpandable- whether the user can resize the windowiconPath- classpath resource path for the window icon, or nullfullScreen- whether the route occupies the complete display without window chrome
-
Constructor Summary
ConstructorsConstructorDescriptionRouteProps(int screenWidth, int screenHeight, String name, boolean screenIsExpandable) RouteProps(int screenWidth, int screenHeight, String name, boolean screenIsExpandable, boolean fullScreen) RouteProps(int screenWidth, int screenHeight, String name, boolean screenIsExpandable, String iconPath) RouteProps(int screenWidth, int screenHeight, String name, boolean screenIsExpandable, String iconPath, boolean fullScreen) Creates an instance of aRoutePropsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefullScreenrecord component.final inthashCode()Returns a hash code value for this object.iconPath()Returns the value of theiconPathrecord component.name()Returns the value of thenamerecord component.intReturns the value of thescreenHeightrecord component.booleanReturns the value of thescreenIsExpandablerecord component.intReturns the value of thescreenWidthrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RouteProps
-
RouteProps
-
RouteProps
public RouteProps(int screenWidth, int screenHeight, String name, boolean screenIsExpandable, boolean fullScreen) -
RouteProps
public RouteProps(int screenWidth, int screenHeight, String name, boolean screenIsExpandable, String iconPath, boolean fullScreen) Creates an instance of aRoutePropsrecord class.- Parameters:
screenWidth- the value for thescreenWidthrecord componentscreenHeight- the value for thescreenHeightrecord componentname- the value for thenamerecord componentscreenIsExpandable- the value for thescreenIsExpandablerecord componenticonPath- the value for theiconPathrecord componentfullScreen- the value for thefullScreenrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
screenWidth
public int screenWidth()Returns the value of thescreenWidthrecord component.- Returns:
- the value of the
screenWidthrecord component
-
screenHeight
public int screenHeight()Returns the value of thescreenHeightrecord component.- Returns:
- the value of the
screenHeightrecord component
-
name
-
screenIsExpandable
public boolean screenIsExpandable()Returns the value of thescreenIsExpandablerecord component.- Returns:
- the value of the
screenIsExpandablerecord component
-
iconPath
-
fullScreen
public boolean fullScreen()Returns the value of thefullScreenrecord component.- Returns:
- the value of the
fullScreenrecord component
-