public class ItemDescriptorWithCount
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static ItemDescriptorWithCount |
EMPTY |
| Constructor and Description |
|---|
ItemDescriptorWithCount(ItemDescriptor descriptor,
int count) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
static ItemDescriptorWithCount |
fromItem(ItemData item) |
int |
getCount() |
ItemDescriptor |
getDescriptor() |
int |
hashCode() |
ItemData |
toItem() |
java.lang.String |
toString() |
public static final ItemDescriptorWithCount EMPTY
public ItemDescriptorWithCount(ItemDescriptor descriptor, int count)
public ItemData toItem()
public static ItemDescriptorWithCount fromItem(ItemData item)
public ItemDescriptor getDescriptor()
public int getCount()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectprotected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode in class java.lang.Object