Class ObjectHolder<T>

    • Constructor Detail

      • ObjectHolder

        public ObjectHolder()
        Default constructor to hold null.
      • ObjectHolder

        public ObjectHolder​(T object)
        Held object constructor.
        Parameters:
        object - The object to hold.
    • Method Detail

      • setObject

        public void setObject​(T object)
        Sets the held object.
        Overrides:
        setObject in class AbstractObjectDecorator<T>
        Parameters:
        object - The object to hold.
      • isPresent

        public boolean isPresent()
        Returns:
        true if the object being held is not equal to null.