#include "DLLNode.h"

DLLNode::DLLNode(int val, DLLNode* prev, DLLNode* next){
    this->val = val;
    this->next = next;
    this->prev = prev;
}

int DLLNode::getInt(){
    return this->val;
}

void DLLNode::setInt(int i){
    this->val=i;
}

DLLNode* DLLNode::getNext(){
    return this->next;
}
void DLLNode::setNext(DLLNode* next){
    this->next=next;
}
DLLNode* DLLNode::getPrev(){
    return this->prev;
}
void DLLNode::setPrev(DLLNode* prev){
    this->prev=prev;
}
