Class 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 void addObject​(java.lang.Object object)
      Add a new Object to the list.
      static void cleanObjects()
      Set Objects List to null.
      static java.lang.Object getObject​(int position)
      Get Object in the position of the list specified
      static java.lang.Object getObject​(java.lang.Class object)
      Get the first Object that returns the filter or return null
      static java.util.List<java.lang.Object> getObjects​(java.lang.Class object)
      Gets all the Objects that match with the .class
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ObjectManager

        public ObjectManager()
    • 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.