Class ObjectContext<T>

  • Type Parameters:
    T - the type of object.
    All Implemented Interfaces:
    CustomContext

    public class ObjectContext<T>
    extends java.lang.Object
    implements CustomContext
    An Object container.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private T obj  
    • Constructor Summary

      Constructors 
      Constructor Description
      ObjectContext​(T t)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T get()  
      • Methods inherited from class java.lang.Object

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

      • obj

        private T obj
    • Constructor Detail

      • ObjectContext

        public ObjectContext​(T t)
        Parameters:
        t - the Object to contain
    • Method Detail

      • get

        public T get()
        Returns:
        the contained object