Package limn.print
Record Class PageInfo
java.lang.Object
java.lang.Record
limn.print.PageInfo
- Record Components:
number- the page's number, from 1count- how many pages the document haspaper- the paper the document is laid out on
Which page a header or a footer is drawn for: its number, how many pages the document has, and
the paper. Known only once the document has been cut into pages, which is why a header and a
footer are functions of it (
Document.header, Document.footer).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisFirst()booleanisLast()intnumber()Returns the value of thenumberrecord component.paper()Returns the value of thepaperrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
isFirst
public boolean isFirst()- Returns:
- whether this is the first page
-
isLast
public boolean isLast()- Returns:
- whether this is the last page
-
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 '=='. -
number
public int number()Returns the value of thenumberrecord component.- Returns:
- the value of the
numberrecord component
-
count
public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
paper
Returns the value of thepaperrecord component.- Returns:
- the value of the
paperrecord component
-