Class GosuCollectionUtil
java.lang.Object
gw.util.GosuCollectionUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <S,T> Map <S, T> compactAndLockHashMap(HashMap<S, T> map) Returns a compacted and locked map representing the map passed in.static <T> List<T> compactAndLockList(List<T> list) Returns a compacted and locked list representing the list passed in.static booleanstartsWith(List<?> list, List<?> prefix) String.startsWith(String)for Lists.
-
Constructor Details
-
GosuCollectionUtil
public GosuCollectionUtil()
-
-
Method Details
-
compactAndLockHashMap
-
compactAndLockList
-
startsWith
String.startsWith(String)for Lists.- Returns:
- true iff list is at least as big as prefix, and if the first prefix.size() elements are element-wise equal to the elements of prefix.
-