Record Class FoliosLayout.Flow
java.lang.Object
java.lang.Record
net.ixdarklord.folios.api.client.page.FoliosLayout.Flow
- Enclosing class:
- FoliosLayout
public static record FoliosLayout.Flow(@Nullable String title, int reserved, @Nullable String text, @Nullable FoliosPageElement.Part part)
extends Record
What a page asked
FoliosLayout.flow(java.lang.String, int, java.lang.String, net.ixdarklord.folios.api.client.page.FoliosPageElement.Part) for: its title, its own part and how tall it is, and its text. A page that holds
others (a page's "elements") sets each of them out from these, one under another.-
Constructor Summary
ConstructorsConstructorDescriptionFlow(@Nullable String title, int reserved, @Nullable String text, @Nullable FoliosPageElement.Part part) Creates an instance of aFlowrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable FoliosPageElement.Partpart()Returns the value of thepartrecord component.intreserved()Returns the value of thereservedrecord component.@Nullable Stringtext()Returns the value of thetextrecord component.@Nullable Stringtitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Flow
public Flow(@Nullable @Nullable String title, int reserved, @Nullable @Nullable String text, @Nullable FoliosPageElement.Part part) Creates an instance of aFlowrecord class.- Parameters:
title- the value for thetitlerecord componentreserved- the value for thereservedrecord componenttext- the value for thetextrecord componentpart- the value for thepartrecord 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 '=='. -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
reserved
public int reserved()Returns the value of thereservedrecord component.- Returns:
- the value of the
reservedrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
part
Returns the value of thepartrecord component.- Returns:
- the value of the
partrecord component
-