Uses of Class
Jcg.util.DListNode
Packages that use DListNode
-
Uses of DListNode in Jcg.util
Modifier and TypeFieldDescriptionCircularDLinkedList.firsta reference to a node in the list (the HEAD)DLinkedList.firstDLinkedList.lastDListNode.nexta reference to the next node in the listDListNode.previousa reference to the previous node in the listModifier and TypeMethodDescriptionDLinkedList.getEnd()Return the end of the list: useful for iterating over the nodesCircularDLinkedList.getFirst()Return the first node of the list The result is a null reference if the list is emptyDLinkedList.getFirst()Return the first node of the list The result is a null reference if the list is emptyDLinkedList.getLast()Return the last node of the list The result is a null reference if the list is emptyDListNode.getNext()DListNode.getPrev()DLinkedList.getStart()Return the 'start' of the list: useful for creating circular listsModifier and TypeMethodDescriptionbooleanCircularDLinkedList.containsNode(DListNode<X> node) Check whether the circular list contains a given node (check reference equality)
Remark: useful for debuggingvoidRemove a given node from the listvoidRemove a given node from the listvoidCircularDLinkedList.insertAfter(DListNode<X> pNode, X el) Insert a new element after a given node in the listvoidDLinkedList.insertAfter(DListNode<X> pNode, X el) Insert a new element after a given node in the listvoidCircularDLinkedList.insertBefore(DListNode<X> pNode, X el) Insert a new element before a given node in the listvoidDLinkedList.insertBefore(DListNode<X> pNode, X el) Insert a new element before a given node in the listvoidvoid