Record Class TextPage.Item
java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.client.page.TextPage.Item
- Enclosing class:
TextPage
public static record TextPage.Item(FoliosPageElement element, ElementLayout settings, @Nullable Observed observed)
extends Record
An element of a page, how it is set there, and the source its text observes (null for none).
-
Constructor Summary
ConstructorsConstructorDescriptionItem(FoliosPageElement element, ElementLayout settings, @Nullable Observed observed) Creates an instance of aItemrecord class. -
Method Summary
Modifier and TypeMethodDescriptionelement()Returns the value of theelementrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable Observedobserved()Returns the value of theobservedrecord component.settings()Returns the value of thesettingsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Item
Creates an instance of aItemrecord class.- Parameters:
element- the value for theelementrecord componentsettings- the value for thesettingsrecord componentobserved- the value for theobservedrecord component
-
-
Method Details
-
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). -
element
Returns the value of theelementrecord component.- Returns:
- the value of the
elementrecord component
-
settings
Returns the value of thesettingsrecord component.- Returns:
- the value of the
settingsrecord component
-
observed
Returns the value of theobservedrecord component.- Returns:
- the value of the
observedrecord component
-