Package ch.njol.skript.classes
Record Class ClassInfo.PropertyDocs
java.lang.Object
java.lang.Record
ch.njol.skript.classes.ClassInfo.PropertyDocs
@Experimental
public static record ClassInfo.PropertyDocs(Property<?> property, String description, SkriptAddon provider)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPropertyDocs(Property<?> property, String description, SkriptAddon provider) Creates an instance of aPropertyDocsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Property<?> property()Returns the value of thepropertyrecord component.provider()Returns the value of theproviderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PropertyDocs
Creates an instance of aPropertyDocsrecord class.- Parameters:
property- the value for thepropertyrecord componentdescription- the value for thedescriptionrecord componentprovider- the value for theproviderrecord 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). -
property
Returns the value of thepropertyrecord component.- Returns:
- the value of the
propertyrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-