Class Queue.QueueNode

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    Queue

    protected class Queue.QueueNode
    extends java.lang.Object
    implements java.io.Serializable
    Represents one node in the queue.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Object m_Contents
      The nodes contents
      protected Queue.QueueNode m_Next
      The next node in the queue
    • Constructor Summary

      Constructors 
      Constructor Description
      QueueNode​(java.lang.Object contents)
      Creates a queue node with the given contents
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object contents()
      Returns the contents in the node.
      java.lang.Object contents​(java.lang.Object contents)
      Sets the contents of the node.
      Queue.QueueNode next()
      Gets the next node in the queue.
      Queue.QueueNode next​(Queue.QueueNode next)
      Sets the next node in the queue, and returns it.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • m_Contents

        protected java.lang.Object m_Contents
        The nodes contents
    • Constructor Detail

      • QueueNode

        public QueueNode​(java.lang.Object contents)
        Creates a queue node with the given contents
    • Method Detail

      • contents

        public java.lang.Object contents​(java.lang.Object contents)
        Sets the contents of the node.
      • contents

        public java.lang.Object contents()
        Returns the contents in the node.