Record Class GuideSession.EntryPages
java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.client.GuideSession.EntryPages
- Enclosing class:
GuideSession
public static record GuideSession.EntryPages(List<GuidePage.Laid> pages, Map<String,Integer> anchors, int[] starts)
extends Record
An entry's pages, ready to draw: anchors and the pages of its JSON point into them.
-
Constructor Summary
ConstructorsConstructorDescriptionEntryPages(List<GuidePage.Laid> pages, Map<String, Integer> anchors, int[] starts) Creates an instance of aEntryPagesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionanchors()Returns the value of theanchorsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.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 componentanchors- the value for theanchorsrecord 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
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 withObjects::equals(Object,Object). -
pages
Returns the value of thepagesrecord component.- Returns:
- the value of the
pagesrecord component
-
anchors
Returns the value of theanchorsrecord component.- Returns:
- the value of the
anchorsrecord component
-
starts
public int[] starts()Returns the value of thestartsrecord component.- Returns:
- the value of the
startsrecord component
-