Package io.gs2.inventory.model
Class SimpleItem
java.lang.Object
io.gs2.inventory.model.SimpleItem
- All Implemented Interfaces:
IModel,Serializable,Comparable<SimpleItem>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanstatic SimpleItemfromJson(com.fasterxml.jackson.databind.JsonNode data) getCount()inthashCode()voidvoidvoidsetItemName(String itemName) voidsetRevision(Long revision) voidcom.fasterxml.jackson.databind.JsonNodetoJson()withItemId(String itemId) withItemName(String itemName) withRevision(Long revision) withUserId(String userId)
-
Constructor Details
-
SimpleItem
public SimpleItem()
-
-
Method Details
-
getItemId
-
setItemId
-
withItemId
-
getUserId
-
setUserId
-
withUserId
-
getItemName
-
setItemName
-
withItemName
-
getCount
-
setCount
-
withCount
-
getRevision
-
setRevision
-
withRevision
-
fromJson
-
toJson
public com.fasterxml.jackson.databind.JsonNode toJson() -
compareTo
- Specified by:
compareToin interfaceComparable<SimpleItem>
-
hashCode
public int hashCode() -
equals
-