Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package uoit.restaurant.a3.solution;
- public class LinkedListNode<T>
- {
- LinkedListNode<T> prev;
- LinkedListNode<T> next;
- T item;
- public LinkedListNode()
- {
- this.prev = null;
- this.next = null;
- this.item = null;
- }
- public LinkedListNode(T item)
- {
- this.item = item;
- }
- public void setNext (LinkedListNode<T> next)
- {
- this.next = next;
- }
- public void setPrev(LinkedListNode<T> prev)
- {
- this.prev = prev;
- }
- public void setItem(T item)
- {
- this.item = item;
- }
- public LinkedListNode<T> getPrev()
- {
- return prev;
- }
- public LinkedListNode<T> getNext()
- {
- return next;
- }
- public T getItem()
- {
- return item;
- }
- }
Add Comment
Please, Sign In to add comment