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

com.github.cosycode.ext.se.json.JsonArr Maven / Gradle / Ivy

Go to download

扩展模块, 用于存放一些非常用的工具或模块的扩展类, 例如在poi基础上扩展的excel的导入模块, 模拟按键模块

The newest version!
package com.github.cosycode.ext.se.json;

import com.google.gson.JsonArray;
import com.google.gson.JsonElement;

/**
 * Description : 
 * 

* created in 2023/2/21 *

* * @author CPF * @since 0.2.3 **/ public interface JsonArr extends JsonNode { GsonNode get(int i); boolean isEmpty(); class GsonArr extends GsonNode implements JsonArr { private final JsonArray jsonArray; public GsonArr(JsonArray jsonArray) { this.jsonArray = jsonArray; } @Override public JsonElement getJsonElement() { return jsonArray; } @Override public GsonNode get(int i) { JsonElement jsonElement = jsonArray.get(i); return geneGsonNode(jsonElement); } @Override public boolean isEmpty() { return jsonArray.isEmpty(); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy