public class InventoryItem
extends Object
Internal class representing an item in the inventory
-
Field Summary
Fields
private final javafx.beans.property.SimpleObjectProperty<Long>
SimpleObjectProperty
of
Long
holding the identification number
private final javafx.beans.property.SimpleObjectProperty<String>
SimpleObjectProperty
of
String
holding the name of the item
private final javafx.beans.property.SimpleObjectProperty<Long>
SimpleObjectProperty
of
Long
holding the quantity of the item
-
Constructor Summary
Constructors
-
Method Summary
javafx.beans.property.SimpleObjectProperty<Long>
javafx.beans.property.SimpleObjectProperty<String>
javafx.beans.property.SimpleObjectProperty<Long>
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
id
private final javafx.beans.property.SimpleObjectProperty<Long> id
SimpleObjectProperty
of
Long
holding the identification number
-
name
private final javafx.beans.property.SimpleObjectProperty<String> name
SimpleObjectProperty
of
String
holding the name of the item
-
quantity
private final javafx.beans.property.SimpleObjectProperty<Long> quantity
SimpleObjectProperty
of
Long
holding the quantity of the item
-
Constructor Details
-
InventoryItem
public InventoryItem(long id,
String name,
long quant)
Constructor
- Parameters:
id
- identification number
name
- of the item as String
quant
- quantity of the item
-
Method Details
-
getId
public javafx.beans.property.SimpleObjectProperty<Long> getId()
- Returns:
id
-
getName
public javafx.beans.property.SimpleObjectProperty<String> getName()
- Returns:
name
-
getQuantity
public javafx.beans.property.SimpleObjectProperty<Long> getQuantity()
- Returns:
quantity