Record Class ItemRegistrationResult.DuplicateItem
java.lang.Object
java.lang.Record
net.okocraft.box.api.model.result.item.ItemRegistrationResult.DuplicateItem
- Record Components:
item- a duplicate item
- All Implemented Interfaces:
ItemRegistrationResult
- Enclosing interface:
ItemRegistrationResult
public static record ItemRegistrationResult.DuplicateItem(@NotNull ItemStack item)
extends Record
implements ItemRegistrationResult
A record of the
ItemRegistrationResult that indicates failure due to a duplicate item.-
Nested Class Summary
Nested classes/interfaces inherited from interface ItemRegistrationResult
ItemRegistrationResult.DuplicateItem, ItemRegistrationResult.DuplicateName, ItemRegistrationResult.ExceptionOccurred, ItemRegistrationResult.Success -
Constructor Summary
ConstructorsConstructorDescriptionDuplicateItem(@NotNull ItemStack item) Creates an instance of aDuplicateItemrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull ItemStackitem()Returns the value of theitemrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DuplicateItem
-
-
Method Details
-
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). -
item
-