Record Class FoliosSession.EntryPages
java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.client.FoliosSession.EntryPages
- Enclosing class:
FoliosSession
-
Constructor Summary
ConstructorsConstructorDescriptionEntryPages(List<FoliosPageElement.Laid> pages, Map<String, Integer> markers, int[] starts) Creates an instance of aEntryPagesrecord 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.markers()Returns the value of themarkersrecord component.pages()Returns the value of thepagesrecord component.intsource(int laid) Which page of the entry's JSON a laid page came from.intstart(int page) Where a page of the entry's JSON begins among the laid pages.int[]starts()Returns the value of thestartsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EntryPages
Creates an instance of aEntryPagesrecord class.- Parameters:
pages- the value for thepagesrecord componentmarkers- the value for themarkersrecord componentstarts- the value for thestartsrecord component
-
-
Method Details
-
start
public int start(int page) Where a page of the entry's JSON begins among the laid pages. -
source
public int source(int laid) Which page of the entry's JSON a laid page came from. -
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 withObjects::equals(Object,Object). -
pages
Returns the value of thepagesrecord component.- Returns:
- the value of the
pagesrecord component
-
markers
-
starts
public int[] starts()Returns the value of thestartsrecord component.- Returns:
- the value of the
startsrecord component
-