Files
unisa_strutture_dati_2013_2014/deque/utility/DLNode.java

52 lines
892 B
Java

package deque.utility;
/**
* Created with xgiovio.macbookair.
* User: xgiovio
* Date: 17/03/14
* Time: 16:32
*/
//Copyright (c) 2003 Brown University, Providence, RI
//Additional modifications and methods by xgiovio
public class DLNode <E> {
public DLNode (){
element = null;;
}
public DLNode (E in_element){
element = in_element;
}
public void setElement (E in_element){
element = in_element;
}
public void setNext (DLNode<E> in_next){
next = in_next;
}
public void setPrev (DLNode<E> in_prev){
prev = in_prev;
}
public E getElement (){
return element;
}
public DLNode<E> getNext() {
return next;
}
public DLNode<E> getPrev() {
return prev;
}
private DLNode<E> next = null;
private DLNode<E> prev = null;
private E element;
}