Class Wrapper<T>

  • Type Parameters:
    T - type that is wrapped
    Direct Known Subclasses:
    Wrapper.IntObjectWrapper

    public class Wrapper<T>
    extends java.lang.Object
    Generic mutatble Wrapper class - allows non-mutatable class to be wrapped in mutatable classes, and re-accessed later.
    Since:
    2.2
    Author:
    Richard McCreadie
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Wrapper.IntObjectWrapper<K>
      IntObjectWrapper class
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected T o  
    • Constructor Summary

      Constructors 
      Constructor Description
      Wrapper()
      default constructor
      Wrapper​(T O)
      constructor
    • Field Detail

      • o

        protected T o
    • Constructor Detail

      • Wrapper

        public Wrapper()
        default constructor
      • Wrapper

        public Wrapper​(T O)
        constructor
        Parameters:
        O -
    • Method Detail

      • getObject

        public T getObject()
        return object
        Returns:
        object
      • setObject

        public void setObject​(T O)
        set object
        Parameters:
        O -
      • createWrapper

        public Wrapper<T> createWrapper​(T O)
        get created wrapper
        Parameters:
        O -
        Returns:
        wrapper