Package Items

Class InventoryUsage

java.lang.Object
Items.InventoryUsage

public class InventoryUsage extends Object
Internal class representing an item in the inventory
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    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<String>
    SimpleObjectProperty of String holding the usage of the item
  • Constructor Summary

    Constructors
    Constructor
    Description
    InventoryUsage(long id, String name, double percent)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    javafx.beans.property.SimpleObjectProperty<Long>
    Gets id
    javafx.beans.property.SimpleObjectProperty<String>
    Gets name
    javafx.beans.property.SimpleObjectProperty<String>

    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<String> quantity
      SimpleObjectProperty of String holding the usage of the item
  • Constructor Details

    • InventoryUsage

      public InventoryUsage(long id, String name, double percent)
      Constructor
      Parameters:
      id - identification number
      name - of the item as String
      percent - amount usage
  • Method Details

    • getId

      public javafx.beans.property.SimpleObjectProperty<Long> getId()
      Gets id
      Returns:
      id
    • getName

      public javafx.beans.property.SimpleObjectProperty<String> getName()
      Gets name
      Returns:
      name
    • getQuantity

      public javafx.beans.property.SimpleObjectProperty<String> getQuantity()
      Returns:
      quantity