Package cn.nukkit.network.protocol.types
Record Class EduSharedUriResource
java.lang.Object
java.lang.Record
cn.nukkit.network.protocol.types.EduSharedUriResource
@Since("1.19.30-r1")
@PowerNukkitXOnly
public record EduSharedUriResource(String buttonName, String linkUri)
extends Record
-
Field Summary
-
Constructor Summary
ConstructorDescriptionEduSharedUriResource
(String buttonName, String linkUri) Creates an instance of aEduSharedUriResource
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebuttonName
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.linkUri()
Returns the value of thelinkUri
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
EduSharedUriResource
Creates an instance of aEduSharedUriResource
record class.- Parameters:
buttonName
- the value for thebuttonName
record componentlinkUri
- the value for thelinkUri
record component
-
-
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)
. -
buttonName
Returns the value of thebuttonName
record component.- Returns:
- the value of the
buttonName
record component
-
linkUri
Returns the value of thelinkUri
record component.- Returns:
- the value of the
linkUri
record component
-