public void pushFront(Object obj) {
        if (head == null) {
            head = tail = new Node(null, null, obj);
        } else {
            Node newNode = new Node(null, head, obj);
            head.setPreviousNode(newNode);
            head = newNode;
        }
    }