Record Class NPCConfiguration
java.lang.Object
java.lang.Record
eu.cloudnetservice.modules.npc.configuration.NPCConfiguration
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @NonNull List<NPCConfigurationEntry> The field for theentriesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionNPCConfiguration(@NonNull List<NPCConfigurationEntry> entries) Creates an instance of aNPCConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull NPCConfiguration.Builderbuilder()static @NonNull NPCConfiguration.Builderbuilder(@NonNull NPCConfiguration configuration) entries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
entries
The field for theentriesrecord component.
-
-
Constructor Details
-
NPCConfiguration
Creates an instance of aNPCConfigurationrecord class.- Parameters:
entries- the value for theentriesrecord component
-
-
Method Details
-
builder
-
builder
@NonNull public static @NonNull NPCConfiguration.Builder builder(@NonNull @NonNull NPCConfiguration configuration) -
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). -
entries
Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-