Record Class FoliosSession.EntryPages
java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.client.FoliosSession.EntryPages
- Enclosing class:
- FoliosSession
public static record FoliosSession.EntryPages(List<FoliosPageElement.Laid> pages, Map<String,Integer> markers, int[] starts, Map<String,FoliosLayout.Mark> places)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEntryPages(List<FoliosPageElement.Laid> pages, Map<String, Integer> markers, int[] starts) EntryPages(List<FoliosPageElement.Laid> pages, Map<String, Integer> markers, int[] starts, Map<String, FoliosLayout.Mark> places) 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.places()Returns the value of theplacesrecord component.intsource(int laid) intstart(int page) int[]starts()Returns the value of thestartsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EntryPages
-
EntryPages
public EntryPages(List<FoliosPageElement.Laid> pages, Map<String, Integer> markers, int[] starts, Map<String, FoliosLayout.Mark> places) Creates an instance of aEntryPagesrecord class.- Parameters:
pages- the value for thepagesrecord componentmarkers- the value for themarkersrecord componentstarts- the value for thestartsrecord componentplaces- the value for theplacesrecord component
-
-
Method Details
-
start
public int start(int page) -
source
public int source(int laid) -
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
-
markers
Returns the value of themarkersrecord component.- Returns:
- the value of the
markersrecord component
-
starts
public int[] starts()Returns the value of thestartsrecord component.- Returns:
- the value of the
startsrecord component
-
places
Returns the value of theplacesrecord component.- Returns:
- the value of the
placesrecord component
-