Class FindItem


public class FindItem extends Object
FuzzySearch implementation to find an ITEM in the file.

After the main file has been loaded with data and formatted, this class is used to find a certain item for listFinder

It has a default constructor to assign a file.
See Also:
  • Constructor Details

    • FindItem

      public FindItem()
  • Method Details

    • essentialFindAllClosestAsMap

      public ArrayList<String> essentialFindAllClosestAsMap(String itemName)
      Child (builds off of) of findAllClosestAsMap(String) which is also a child of findAllClosest(String) The main caller method for findItem. It will output the most important info. For example:

      Item: Inkfish

      Zone: The Sea of Clouds

      Coordinates: (x29,y35)

      Time: 2PM-4PM

      FolkLore Tome: Abalathian

      If looking for raw or full data, look at findAllClosestAsMap and findAllClosest

      Recommended setup to output this method:

       
       arr = findItem.essentialFindAllClosestAsMap(itemnam);
       for (StringBuilder a : arr) {
          System.out.println(a);
               }
       
       
      Parameters:
      itemName - item to find
      Returns:
      Item data separated by \n like so ArrayList <Individual items>
    • findAllClosestAsMap

      public ArrayList<LinkedHashMap<String,String>> findAllClosestAsMap(String itemName)
      Outputs each case neatly with ALL values, and descriptors for each item argument. (eg. this is the folk lore tome)

      Multiple items will be stored in an arraylist with arguments of the Map.

      E.g. FindItem.findAllClosestAsMap(input);

      input: Lava toad

      output:[{Item=Lava Toad, Zone=Southern Thanalan, Coordinates=(x13,y31), Extra Information=, Level=50}]
      Returns:
      LinkedHashMap Item descriptor, Item data