Class FastRemovalDequeue.Entry

  • Enclosing class:
    FastRemovalDequeue<T>

    public class FastRemovalDequeue.Entry
    extends java.lang.Object
    Implementation of a doubly linked list entry. All implementation details are private. For the consumer of the above collection, this is simply garbage in, garbage out.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clearReplaced()
      Clears the displaced content reference.
      T getContent()
      Returns the content stored in this entry.
      T getReplaced()
      Returns the content that was displaced when this entry was added to a full queue.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getContent

        public final T getContent()
        Returns the content stored in this entry.
        Returns:
        the content object
      • getReplaced

        public final T getReplaced()
        Returns the content that was displaced when this entry was added to a full queue.
        Returns:
        the displaced content, or null if no content was displaced
      • clearReplaced

        public final void clearReplaced()
        Clears the displaced content reference.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object