Package com.crowdar.util
Class ObjectManager
- java.lang.Object
-
- com.crowdar.util.ObjectManager
-
public class ObjectManager extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ObjectManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddObject(java.lang.Object object)Add a new Object to the list.static voidcleanObjects()Set Objects List to null.static java.lang.ObjectgetObject(int position)Get Object in the position of the list specifiedstatic java.lang.ObjectgetObject(java.lang.Class object)Get the first Object that returns the filter or return nullstatic java.util.List<java.lang.Object>getObjects(java.lang.Class object)Gets all the Objects that match with the .class
-
-
-
Method Detail
-
getObject
public static java.lang.Object getObject(int position)
Get Object in the position of the list specified- Parameters:
position-- Returns:
- Object
-
getObject
public static java.lang.Object getObject(java.lang.Class object)
Get the first Object that returns the filter or return null- Parameters:
object-- Returns:
- First Object find or null
-
getObjects
public static java.util.List<java.lang.Object> getObjects(java.lang.Class object)
Gets all the Objects that match with the .class- Parameters:
object- .class- Returns:
- List of Objects
-
addObject
public static void addObject(java.lang.Object object)
Add a new Object to the list.- Parameters:
object-
-
cleanObjects
public static void cleanObjects()
Set Objects List to null. Recommend to use in After or Before methods.
-
-