Class SearchedItemsLinkedList.ItemListNode
java.lang.Object
org.troy.capstone.data_structures.SearchedItemsLinkedList.ItemListNode
- Enclosing class:
SearchedItemsLinkedList
Private inner class representing a node in the linked list.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe list of items corresponding to a page of search results contained in this node.The next node in the linked list.The previous node in the linked list. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
items
-
next
The next node in the linked list. -
prev
The previous node in the linked list.
-
-
Constructor Details
-
ItemListNode
-
-
Method Details
-
getItems
-
getNext
Returns the next node in the linked list.- Returns:
- The next node in the linked list, or null if there is none.
-
getPrev
Returns the previous node in the linked list.- Returns:
- The previous node in the linked list, or null if there is none.
-
setNext
Sets the next node in the linked list.- Parameters:
next- The node to set as the next node in the linked list.- Preconditions:
nextshould be a validItemListNodeor null.
-
setPrev
Sets the previous node in the linked list.- Parameters:
prev- The node to set as the previous node in the linked list.- Preconditions:
prevshould be a validItemListNodeor null.
-