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

org.boon.slumberdb.serialization.JsonSerializer Maven / Gradle / Ivy

package org.boon.slumberdb.serialization;

import org.boon.core.Function;
import org.boon.json.serializers.impl.JsonSimpleSerializerImpl;

/**
 * Created by Richard on 4/9/14.
 */
public class JsonSerializer implements Function {


    /**
     * JSON valueObjectConverter we are using.
     */
    protected JsonSimpleSerializerImpl serializer = new JsonSimpleSerializerImpl();

    public JsonSerializer(Class type) {
    }

    @Override
    public String apply(T t) {
        return serializer.serialize(t).toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy