Class NameUtil
java.lang.Object
com.palmergames.bukkit.towny.utils.NameUtil
A helper class to extract name data from classes and filter matching strings.
- Author:
- Suneet Tipirneni (Siris), stzups
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfilterByStart
(List<String> list, String startingWith) Returns strings that start with a stringgetNames
(Collection<T> objs) A helper function that extracts names from objects.static String
getTagFromName
(String name)
-
Constructor Details
-
NameUtil
public NameUtil()
-
-
Method Details
-
getNames
A helper function that extracts names from objects.- Type Parameters:
T
- The collection type that implementsNameable
- Parameters:
objs
- The Nameable objects to get the names from.- Returns:
- A list of the names of the objects.
-
filterByStart
Returns strings that start with a string- Parameters:
list
- strings to checkstartingWith
- string to check with list- Returns:
- strings from list that start with startingWith
-
getTagFromName
-