Package FLOTF

Class Supply


  • public class Supply
    extends java.lang.Object
    This class holds the logic of checking a part's inventory in the supply database
    Author:
    Bernard Chan, Sonali Loomba
    • Constructor Summary

      Constructors 
      Constructor Description
      Supply()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String checkInventory​(java.lang.String nsn)
      Finds the inventory of a part in the supply database based on the National Stock Number of the part
      • Methods inherited from class java.lang.Object

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

      • Supply

        public Supply()
    • Method Detail

      • checkInventory

        public static java.lang.String checkInventory​(java.lang.String nsn)
        Finds the inventory of a part in the supply database based on the National Stock Number of the part
        Parameters:
        nsn - the National Stock Number to check
        Returns:
        String number amount of the part that is in stock