# Class Wrapper<T>

java.lang.Object
com.codename1.util.Wrapper<T>

public class Wrapper<T> extends Object
Generic object wrapper, as workaround for the issue "Local variables referenced from a lambda expression must be final or effectively final".

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Wrapper(T obj)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `T`
  `get()`
  `void`
  `set(T obj)`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Wrapper

    public Wrapper(T obj)

- ## Method Details

  - ### get

    public T get()

  - ### set

    public void set(T obj)