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

io.inversion.context.Codec Maven / Gradle / Ivy

There is a newer version: 1.0.0.beta2
Show newest version
package io.inversion.context;

import java.lang.reflect.Type;
import java.util.*;

public interface Codec {

    Object decode(Context context, Type type, String encoded);

    default String encode(Context context, CodecPath codecPath, LinkedHashMap props, Set encoded) {
        return codecPath.getBean() + "";
    }

    default List getTypes(){
        return new ArrayList<>();
    };

}