Class ObjectHolder<T>

java.lang.Object
org.apache.groovy.util.ObjectHolder<T>
Type Parameters:
T - the type of object

public class ObjectHolder<T> extends Object
Just hold an object
  • Constructor Details

    • ObjectHolder

      public ObjectHolder()
    • ObjectHolder

      public ObjectHolder(T object)
  • Method Details

    • getObject

      public T getObject()
    • getObject

      public T getObject(Supplier<? extends T> def)
    • setObject

      public void setObject(T object)