Examples of JreJsonArray


Examples of com.goodow.realtime.json.impl.JreJsonArray

  private static final Logger log  = Logger.getLogger(OperationProcessor.class.getName());

  @SuppressWarnings("unchecked")
  public static DocumentBridge createSnapshot(final String docType, final String docId,
                                              JsonObject snapshotData) {
    JreJsonArray snapshot = snapshotData.containsField(Key.SNAPSHOT)
                            ? new JreJsonArray(snapshotData.getArray(Key.SNAPSHOT).toList()) : null;
    DocumentBridge bridge = new DocumentBridge(null, docType + "/" + docId, snapshot, null, null);
    return bridge;
  }
View Full Code Here

Examples of com.goodow.realtime.json.impl.JreJsonArray

  private CollaborativeOperation createOperation(JsonObject opData) {
    return transformer.createOperation(new JreJsonObject(opData.toMap()));
  }

  private JreJsonArray createOperations(JsonArray opDatas, int from, int to) {
    JreJsonArray operations = new JreJsonArray();
    for (; from < to; from++) {
      operations.push(createOperation(opDatas.<JsonObject> get(from)));
    }
    return operations;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.