1 package org.simantics.db.layer0.adapter;
3 import org.simantics.databoard.Bindings;
4 import org.simantics.db.AsyncReadGraph;
5 import org.simantics.db.RelationContext;
6 import org.simantics.db.Resource;
7 import org.simantics.db.adaption.Adapter;
8 import org.simantics.db.procedure.AsyncProcedure;
10 public class LiteralDoubleAdapter implements Adapter<Double, RelationContext> {
13 public void adapt(AsyncReadGraph g, Resource source, RelationContext s, final AsyncProcedure<Double> procedure) {
14 g.forValue(s.getStatement().getObject(), Bindings.DOUBLE, procedure);