Package net.ixdarklord.folios.api.client
Record Class FoliosEntry.Page
java.lang.Object
java.lang.Record
net.ixdarklord.folios.api.client.FoliosEntry.Page
- Record Components:
marker- a name links can reach it by (entry:<id>#<marker>); null for noneicon- shown before its title: its own ("icon";FoliosIcon.NONEfor"none"), or null for the entry's on its first page and none on the others
- Enclosing class:
- FoliosEntry
public static record FoliosEntry.Page(FoliosPageElement page, @Nullable String marker, FoliosLock lock, @Nullable FoliosIcon icon)
extends Record
A page of the entry, with what applies to it whatever its kind.
-
Constructor Summary
ConstructorsConstructorDescriptionPage(FoliosPageElement page, @Nullable String marker, FoliosLock lock) Page(FoliosPageElement page, @Nullable String marker, FoliosLock lock, @Nullable FoliosIcon icon) Creates an instance of aPagerecord 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.@Nullable FoliosIconicon()Returns the value of theiconrecord component.lock()Returns the value of thelockrecord component.@Nullable Stringmarker()Returns the value of themarkerrecord component.page()Returns the value of thepagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Page
-
Page
public Page(FoliosPageElement page, @Nullable @Nullable String marker, FoliosLock lock, @Nullable @Nullable FoliosIcon icon) Creates an instance of aPagerecord class.
-
-
Method Details
-
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). -
page
Returns the value of thepagerecord component.- Returns:
- the value of the
pagerecord component
-
marker
Returns the value of themarkerrecord component.- Returns:
- the value of the
markerrecord component
-
lock
Returns the value of thelockrecord component.- Returns:
- the value of the
lockrecord component
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-