Class ListUtilities
java.lang.Object
de.gurkenlabs.litiengine.util.ListUtilities
Utility class for various list operations. This class cannot be instantiated.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E> booleancontainsInstance(List<E> list, Class<? extends E> clazz) Checks if the list contains an instance of the specified class.getIntList(int... values) Converts an array of int values to a list of Integer objects.
-
Method Details
-
containsInstance
Checks if the list contains an instance of the specified class.- Type Parameters:
E- the type of elements in the list- Parameters:
list- the list to checkclazz- the class to check for instances of- Returns:
- true if the list contains an instance of the specified class, false otherwise
-
getIntList
-