]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.document.server/src/org/simantics/document/server/JSONResult.java
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / bundles / org.simantics.document.server / src / org / simantics / document / server / JSONResult.java
1 package org.simantics.document.server;
2
3 import java.util.Collection;
4
5 import org.simantics.document.server.io.IJSONObject;
6 import org.simantics.document.server.io.IJSONResult;
7
8 public class JSONResult implements IJSONResult {
9
10     private int sequenceNumber;
11     private Collection<IJSONObject> json;
12     
13     public JSONResult(int sequenceNumber, Collection<IJSONObject> json) {
14         this.sequenceNumber = sequenceNumber;
15         this.json = json;
16     }
17
18     @Override
19     public int getSequenceNumber() {
20         return sequenceNumber;
21     }
22
23     @Override
24     public Collection<IJSONObject> getJSONObject() {
25         return json;
26     }
27 }