]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/adapter/LiteralDoubleAdapter.java
Merge "Removed extra modules OntologyModule imported to namespace" into release/1...
[simantics/platform.git] / bundles / org.simantics.db.layer0 / src / org / simantics / db / layer0 / adapter / LiteralDoubleAdapter.java
1 package org.simantics.db.layer0.adapter;
2
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;
9
10 public class LiteralDoubleAdapter implements Adapter<Double, RelationContext> {
11
12     @Override
13     public void adapt(AsyncReadGraph g, Resource source, RelationContext s, final AsyncProcedure<Double> procedure) {
14         g.forValue(s.getStatement().getObject(), Bindings.DOUBLE, procedure);
15     }
16     
17 }