Class Bucket
java.lang.Object
com.yetnt.utils.collection.buckets.Bucket
A utility class that acts as a container for a set of
Class objects.
It provides a method to check if a given object is an instance of the
classes held within the bucket.
From Jaiva!
- Author:
- Lehlogonolo Poole
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldHold(Object t) Whether the objecttis a type of the classes this bucket holds.
-
Field Details
-
cls
-
-
Constructor Details
-
Bucket
Default Constructor to create a bucket with multipleClassstuff- Parameters:
classes- Classes
-
-
Method Details
-
shouldHold
Whether the objecttis a type of the classes this bucket holds.- Parameters:
t- The object to check against- Returns:
- true if
clazz.isInstance(t)of any which of the classes in this bucket holds passes, or false otherwise
-