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

com.neko233.skilltree.commons.parser.functionText.FunctionText233 Maven / Gradle / Ivy

There is a newer version: 0.3.6
Show newest version
package com.neko233.skilltree.commons.parser.functionText;

import com.neko233.skilltree.commons.api.kv.KvApi;
import com.neko233.skilltree.commons.api.kv.impl.KvApiByHashMap;
import lombok.Data;

import java.util.Collections;
import java.util.List;
import java.util.Map;

@Data
public class FunctionText233 {

    private String functionName;
    /**
     * also is a param value...
     * demo: ifNull(D1, 1) == 1
     */
    private List metadata;
    private KvApi kv;

    public static FunctionText233 create(
            String functionName,
            List metadata,
            Map kv
    ) {
        final FunctionText233 ft = new FunctionText233();
        ft.functionName = functionName.trim();
        ft.metadata = Collections.unmodifiableList(metadata);
        ft.kv = new KvApiByHashMap(kv);
        return ft;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy