Package buildengine.utils
Class Holder<T>
java.lang.Object
buildengine.utils.Holder<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a tvoid
Add multiple items.<U> boolean
boolean
<U> U
Returns the first type of T in the listgetList()
Collects all the components of the actor and puts it into an Arrayvoid
Removes 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
-