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 bar
screenIsExpandable - whether the user can resize the window
iconPath - classpath resource path for the window icon, or null
fullScreen - whether the route occupies the complete display without window chrome

public record RouteProps(int screenWidth, int screenHeight, String name, boolean screenIsExpandable, String iconPath, boolean fullScreen) extends Record
Immutable properties for a route. Defines the screen dimensions, title, resizability, and optional icon path.
  • Constructor Details

    • RouteProps

      public RouteProps(int screenWidth, int screenHeight, String name, boolean screenIsExpandable)
    • RouteProps

      public RouteProps(int screenWidth, int screenHeight, String name, boolean screenIsExpandable, String iconPath)
    • 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 a RouteProps record class.
      Parameters:
      screenWidth - the value for the screenWidth record component
      screenHeight - the value for the screenHeight record component
      name - the value for the name record component
      screenIsExpandable - the value for the screenIsExpandable record component
      iconPath - the value for the iconPath record component
      fullScreen - the value for the fullScreen record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • screenWidth

      public int screenWidth()
      Returns the value of the screenWidth record component.
      Returns:
      the value of the screenWidth record component
    • screenHeight

      public int screenHeight()
      Returns the value of the screenHeight record component.
      Returns:
      the value of the screenHeight record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • screenIsExpandable

      public boolean screenIsExpandable()
      Returns the value of the screenIsExpandable record component.
      Returns:
      the value of the screenIsExpandable record component
    • iconPath

      public String iconPath()
      Returns the value of the iconPath record component.
      Returns:
      the value of the iconPath record component
    • fullScreen

      public boolean fullScreen()
      Returns the value of the fullScreen record component.
      Returns:
      the value of the fullScreen record component