Class MutableHolder<O>

java.lang.Object
org.newsclub.net.unix.pool.MutableHolder<O>
Type Parameters:
O - The object type.

public final class MutableHolder<O> extends Object
Holds an object.
Author:
Christian Kohlschütter
  • Constructor Details

    • MutableHolder

      public MutableHolder(@Nullable O obj)
      Creates a new MutableHolder object, holding the given object.
      Parameters:
      obj - The object to hold, or null.
  • Method Details

    • get

      public @Nullable O get()
      Returns the current object.
      Returns:
      The object.
    • set

      public void set(@Nullable O obj)
      Sets the object.
      Parameters:
      obj - The object.