Record Class SpreadPage.Node
java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.client.page.SpreadPage.Node
- Enclosing class:
SpreadPage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionentry()Returns the value of theentryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.google.gson.JsonElementicon()Returns the value of theiconrecord component.id()Returns the value of theidrecord component.label()Returns the value of thelabelrecord component.final StringtoString()Returns a string representation of this record class.intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord component.
-
Constructor Details
-
Node
public Node(String id, int x, int y, com.google.gson.JsonElement icon, Optional<String> entry, Optional<String> label) Creates an instance of aNoderecord class.- Parameters:
id- the value for theidrecord componentx- the value for thexrecord componenty- the value for theyrecord componenticon- the value for theiconrecord componententry- the value for theentryrecord componentlabel- the value for thelabelrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
x
public int x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public int y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
icon
public com.google.gson.JsonElement icon()Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
entry
-
label
-