Record Class FoliosLayout.Mark
java.lang.Object
java.lang.Record
net.ixdarklord.folios.api.client.page.FoliosLayout.Mark
- Enclosing class:
FoliosLayout
A named place on the pages a page lays out: the
pageth of them (from 0), from top down to
bottom on it.-
Constructor Summary
ConstructorsConstructorDescriptionMark(int page, int top, int bottom) Creates an instance of aMarkrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintbottom()Returns the value of thebottomrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intpage()Returns the value of thepagerecord component.inttop()Returns the value of thetoprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Mark
public Mark(int page, int top, int bottom) Creates an instance of aMarkrecord class.- Parameters:
page- the value for thepagerecord componenttop- the value for thetoprecord componentbottom- the value for thebottomrecord 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 '=='. -
page
public int page()Returns the value of thepagerecord component.- Returns:
- the value of the
pagerecord component
-
top
public int top()Returns the value of thetoprecord component.- Returns:
- the value of the
toprecord component
-
bottom
public int bottom()Returns the value of thebottomrecord component.- Returns:
- the value of the
bottomrecord component
-