Module org.dyn4j
Package org.dyn4j

Class Reference<T>

  • Type Parameters:
    T - the reference type

    public class Reference<T>
    extends Object
    A generic mutable wrapper for primitive types.

    Due to the value being public and mutable, this class does not override the behavior of the hashcode method and instead relies on the JVMs implementation of hashcode for proper distribution.

    Since:
    3.2.0
    Version:
    3.2.0
    Author:
    William Bittle
    • Field Detail

      • value

        public T value
        The value
    • Constructor Detail

      • Reference

        public Reference()
        The default constructor
      • Reference

        public Reference​(T initialValue)
        Full constructor.
        Parameters:
        initialValue - the initial value