com.github.rschmitt.dynamicobject.internal.RecordReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dynamic-object Show documentation
Show all versions of dynamic-object Show documentation
Lightweight data modeling for Java, powered by Clojure.
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