Class LivePrices


  • public class LivePrices
    extends java.lang.Object
    A class that provides methods to retrieve live prices of items.
    • Constructor Summary

      Constructors 
      Constructor Description
      LivePrices()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int getHighItemPrice​(int id)
      Returns the highest price of an item identified by the given id.
      static int getItemPrice​(int id)
      Returns the price of an item based on its ID.
      static int getLowItemPrice​(int id)
      Returns the lowest price of the item with the given id.
      • Methods inherited from class java.lang.Object

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

      • LivePrices

        public LivePrices()
    • Method Detail

      • getItemPrice

        public static int getItemPrice​(int id)
        Returns the price of an item based on its ID.
        Parameters:
        id - the ID of the item
        Returns:
        the price of the item
      • getHighItemPrice

        public static int getHighItemPrice​(int id)
        Returns the highest price of an item identified by the given id.
        Parameters:
        id - the identifier of the item
        Returns:
        the highest price of the item
      • getLowItemPrice

        public static int getLowItemPrice​(int id)
        Returns the lowest price of the item with the given id.
        Parameters:
        id - the id of the item
        Returns:
        the lowest price of the item