Interface ItemBase
- All Known Subinterfaces:
HashedItem
,Item
- All Known Implementing Classes:
DataItem
,HashedStructuredItem
,StructuredItem
public interface ItemBase
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionint
amount()
Returns the item amount.int
Returns the item identifier.default boolean
isEmpty()
Returns true if the item is empty.void
setAmount
(int amount) Returns the item amount.void
setIdentifier
(int identifier) Sets the item identifier.
-
Method Details
-
identifier
int identifier()Returns the item identifier.- Returns:
- item identifier
-
setIdentifier
void setIdentifier(int identifier) Sets the item identifier.- Parameters:
identifier
- item identifier
-
amount
int amount()Returns the item amount.- Returns:
- item amount
-
setAmount
void setAmount(int amount) Returns the item amount.- Parameters:
amount
- item amount
-
isEmpty
default boolean isEmpty()Returns true if the item is empty.- Returns:
- true if the item is empty
-