@Override
    public TypeOfValue pop() throws EmptyStackException {

        if (null == this.firstNode) {
            throw new EmptyStackException();
        }

        TypeOfValue pop = (TypeOfValue) this.firstNode.getObject();

        this.firstNode = this.firstNode.getNextNode();

        return pop;
    }