Class ProductCache


  • public class ProductCache
    extends java.lang.Object
    Model for product in Storage for saving ticks in Node
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int duration  
      private java.lang.String name  
      private ProductType type  
    • Constructor Summary

      Constructors 
      Constructor Description
      ProductCache​(java.lang.String name, ProductType type)  
    • Method Summary

      Modifier and Type Method Description
      void addToDuration()  
      int getDuration()  
      java.lang.String getName()  
      ProductType getType()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        private final java.lang.String name
      • duration

        private int duration
    • Constructor Detail

      • ProductCache

        public ProductCache​(java.lang.String name,
                            ProductType type)
    • Method Detail

      • getName

        public java.lang.String getName()
      • getDuration

        public int getDuration()
      • addToDuration

        public void addToDuration()