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

com.github.rschmitt.dynamicobject.internal.RecordReader Maven / Gradle / Ivy

There is a newer version: 1.7.3
Show newest version
package com.github.rschmitt.dynamicobject.internal;

import java.util.Map;

import com.github.rschmitt.dynamicobject.DynamicObject;

import clojure.lang.AFn;

public final class RecordReader> extends AFn {
    private final Class type;

    RecordReader(Class type) {
        this.type = type;
    }

    /**
     * For use by clojure.edn/read only. Do not call directly.
     */
    @Override
    public Object invoke(Object map) {
        return DynamicObject.wrap((Map) map, type).afterDeserialization();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy