Package buildengine.utils
Class Holder<T>
java.lang.Object
buildengine.utils.Holder<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a tvoidAdd multiple items.<U> booleanboolean<U> UReturns the first type of T in the listgetList()Collects all the components of the actor and puts it into an ArrayvoidRemoves a t if it has the specified t
-
Constructor Details
-
Holder
public Holder()
-
-
Method Details
-
addAll
Add multiple items.- See Also:
-
add
Add a t -
remove
Removes a t if it has the specified t -
contains
-
contains
-
get
Returns the first type of T in the list- Type Parameters:
U- The class type- Parameters:
classType- The type to test for- Returns:
- the first instance of the class
-
getList
Collects all the components of the actor and puts it into an Array- Returns:
- an array of the Actor's components
-