Record Class ItemRegistrationResult.Success
java.lang.Object
java.lang.Record
net.okocraft.box.api.model.result.item.ItemRegistrationResult.Success
- Record Components:
customItem- a registered custom item
- All Implemented Interfaces:
ItemRegistrationResult
- Enclosing interface:
ItemRegistrationResult
public static record ItemRegistrationResult.Success(@NotNull BoxCustomItem customItem)
extends Record
implements ItemRegistrationResult
A record of the
ItemRegistrationResult that indicates success.-
Nested Class Summary
Nested classes/interfaces inherited from interface ItemRegistrationResult
ItemRegistrationResult.DuplicateItem, ItemRegistrationResult.DuplicateName, ItemRegistrationResult.ExceptionOccurred, ItemRegistrationResult.Success -
Constructor Summary
ConstructorsConstructorDescriptionSuccess(@NotNull BoxCustomItem customItem) Creates an instance of aSuccessrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull BoxCustomItemReturns the value of thecustomItemrecord 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.
-
Constructor Details
-
Success
Creates an instance of aSuccessrecord class.- Parameters:
customItem- the value for thecustomItemrecord component
-
-
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). -
customItem
Returns the value of thecustomItemrecord component.- Returns:
- the value of the
customItemrecord component
-