All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alibaba.fastjson2.adapter.jackson.databind.node.JsonNodeIterator Maven / Gradle / Ivy

There is a newer version: 2.0.26
Show newest version
package com.alibaba.fastjson2.adapter.jackson.databind.node;

import java.util.Iterator;

class JsonNodeIterator
        implements Iterator {
    final Iterator it;

    public JsonNodeIterator(Iterator it) {
        this.it = it;
    }

    @Override
    public boolean hasNext() {
        return it.hasNext();
    }

    @Override
    public Object next() {
        Object value = it.next();
        return TreeNodeUtils.as(value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy