io.github.jzdayz.util.ArgsUtil Maven / Gradle / Ivy
package io.github.jzdayz.util;
import com.alibaba.fastjson.JSON;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
public class ArgsUtil {
private static final char TYPE_DELIMITER = 1;
private static final char ARG_DELIMITER = 2;
public static final Object[] NULL_OBJ_ARRAY = new Object[0];
public static Object[] decode(String args){
if (args == null || args.length()==0){
return NULL_OBJ_ARRAY;
}
StringBuilder sb = new StringBuilder(100);
List