Class MarkedReference<T>

  • Type Parameters:
    T - the type of the reference

    public class MarkedReference<T>
    extends Object
    Immutable, non-volatile, non-atomic version of AtomicMarkableReference.
    • Constructor Detail

      • MarkedReference

        public MarkedReference​(T reference,
                               boolean marked)
    • Method Detail

      • empty

        public static <S> MarkedReference<S> empty()
        Type Parameters:
        S - the type of the null reference
        Returns:
        a null-reference, non-marked instance
      • getReference

        public T getReference()
      • isMarked

        public boolean isMarked()