Package space.maxus.flare.ui.page
Record Class PageFrame.Props
java.lang.Object
java.lang.Record
space.maxus.flare.ui.page.PageFrame.Props
- Enclosing class:
- PageFrame
public static record PageFrame.Props(int page, @Nullable String initTitle, Dimensions dim, Map<ComposableSpace,Composable> initData, Consumer<PageFrame> initializer)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionProps(int page, @Nullable String initTitle, Dimensions dim, Map<ComposableSpace, Composable> initData, Consumer<PageFrame> initializer) Creates an instance of aPropsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondim()Returns the value of thedimrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.initData()Returns the value of theinitDatarecord component.Returns the value of theinitializerrecord component.@Nullable StringReturns the value of theinitTitlerecord component.intpage()Returns the value of thepagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Props
public Props(int page, @Nullable @Nullable String initTitle, Dimensions dim, Map<ComposableSpace, Composable> initData, Consumer<PageFrame> initializer) Creates an instance of aPropsrecord class.- Parameters:
page- the value for thepagerecord componentinitTitle- the value for theinitTitlerecord componentdim- the value for thedimrecord componentinitData- the value for theinitDatarecord componentinitializer- the value for theinitializerrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
page
public int page()Returns the value of thepagerecord component.- Returns:
- the value of the
pagerecord component
-
initTitle
Returns the value of theinitTitlerecord component.- Returns:
- the value of the
initTitlerecord component
-
dim
Returns the value of thedimrecord component.- Returns:
- the value of the
dimrecord component
-
initData
Returns the value of theinitDatarecord component.- Returns:
- the value of the
initDatarecord component
-
initializer
Returns the value of theinitializerrecord component.- Returns:
- the value of the
initializerrecord component
-