Class FindItem
java.lang.Object
FindItem
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionessentialFindAllClosestAsMap
(String itemName) Child (builds off of) offindAllClosestAsMap(String)
which is also a child offindAllClosest(String)
The main caller method for findItem.findAllClosestAsMap
(String itemName) Outputs each case neatly with ALL values, and descriptors for each item argument.
-
Constructor Details
-
FindItem
public FindItem()
-
-
Method Details
-
essentialFindAllClosestAsMap
Child (builds off of) offindAllClosestAsMap(String)
which is also a child offindAllClosest(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 findAllClosestRecommended 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
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
-