Record Class RuleDefinition
java.lang.Object
java.lang.Record
su.nightexpress.excellentclaims.api.rule.RuleDefinition
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRuleDefinition(String name, List<String> description, su.nightexpress.nightcore.util.bukkit.NightItem icon) Creates an instance of aRuleDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic RuleDefinition.BuilderReturns 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.su.nightexpress.nightcore.util.bukkit.NightItemicon()Returns the value of theiconrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RuleDefinition
public RuleDefinition(String name, List<String> description, su.nightexpress.nightcore.util.bukkit.NightItem icon) Creates an instance of aRuleDefinitionrecord class.- Parameters:
name- the value for thenamerecord componentdescription- the value for thedescriptionrecord componenticon- the value for theiconrecord component
-
-
Method Details
-
builder
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
-
icon
public su.nightexpress.nightcore.util.bukkit.NightItem icon()Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-