Package dev.itsharshxd.zentrix.api.loot
Record Class LootValidationIssue
java.lang.Object
java.lang.Record
dev.itsharshxd.zentrix.api.loot.LootValidationIssue
public record LootValidationIssue(@NotNull String localeKey, @NotNull Optional<String> entryId, boolean global, @NotNull Map<String,Object> placeholders)
extends Record
One locale-addressable loot validation problem.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionentryId()Returns the value of theentryIdrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanglobal()Returns the value of theglobalrecord component.final inthashCode()Returns a hash code value for this object.@NotNull StringReturns the value of thelocaleKeyrecord component.Returns the value of theplaceholdersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LootValidationIssue
public LootValidationIssue(@NotNull @NotNull String localeKey, @NotNull @NotNull Optional<String> entryId, boolean global, @NotNull @NotNull Map<String, Object> placeholders) Creates an instance of aLootValidationIssuerecord class.- Parameters:
localeKey- the value for thelocaleKeyrecord componententryId- the value for theentryIdrecord componentglobal- the value for theglobalrecord componentplaceholders- the value for theplaceholdersrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
localeKey
Returns the value of thelocaleKeyrecord component.- Returns:
- the value of the
localeKeyrecord component
-
entryId
Returns the value of theentryIdrecord component.- Returns:
- the value of the
entryIdrecord component
-
global
public boolean global()Returns the value of theglobalrecord component.- Returns:
- the value of the
globalrecord component
-
placeholders
Returns the value of theplaceholdersrecord component.- Returns:
- the value of the
placeholdersrecord component
-