Record Class ReportPages.PageRange
java.lang.Object
java.lang.Record
io.leandev.appfuse.report.ReportPages.PageRange
- Record Components:
from- 起始頁(含)to- 結束頁(含)
- Enclosing class:
ReportPages
連續頁的區間(
1 <= from <= to <= MAX_PAGE)- Since:
- 4.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionPageRange(int from, int to) Creates an instance of aPageRangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intfrom()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.intsize()intto()Returns the value of thetorecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
PageRange
-
-
Method Details
-
size
public int size()- Returns:
- 區間內的頁數
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
from
-
to
-