Package net.ixdarklord.folios.api.client
Record Class GuideEntry.Page
java.lang.Object
java.lang.Record
net.ixdarklord.folios.api.client.GuideEntry.Page
- Record Components:
anchor- a name links can reach it by; null for noneicon- shown before its title: its own ("icon";GuideIcon.NONEfor"none"), or null for the entry's on its first page and none on the others
- Enclosing class:
- GuideEntry
public static record GuideEntry.Page(GuidePage page, @Nullable String anchor, GuideLock lock, @Nullable GuideIcon icon)
extends Record
A page of the entry, with what applies to it whatever its kind.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringanchor()Returns the value of theanchorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable GuideIconicon()Returns the value of theiconrecord component.lock()Returns the value of thelockrecord component.page()Returns the value of thepagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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
-
anchor
Returns the value of theanchorrecord component.- Returns:
- the value of the
anchorrecord 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
-