Class Linked<T>

java.lang.Object
de.tomatengames.util.linked.Linked<T>
Type Parameters:
T - The type of the value.

public final class Linked<T> extends Object
Represents an Object value that can be modified. The value may be null.
Since:
1.2
  • Constructor Details

    • Linked

      public Linked(T initialValue)
      Creates a new Linked.
      Parameters:
      initialValue - The initial value of this object.
  • Method Details

    • set

      public final void set(T value)
      Sets the value of this object.
      Parameters:
      value - The new value.
    • get

      public final T get()
      Returns the value of this object.
      Returns:
      The value.