Examples of ProtocolWaveletDeltaProtoImpl


Examples of org.waveprotocol.wave.federation.proto.ProtocolWaveletDeltaProtoImpl

  }

  @Override
  public ProtocolWaveletDeltaProtoImpl getAppliedDelta(int n) {
    switchToProto();
    return new ProtocolWaveletDeltaProtoImpl(proto.getAppliedDelta(n));
  }
View Full Code Here

Examples of org.waveprotocol.wave.federation.proto.ProtocolWaveletDeltaProtoImpl

  /** Get or create a ProtocolWaveletDeltaProtoImpl from a ProtocolWaveletDelta. */
  private ProtocolWaveletDeltaProtoImpl getOrCreateProtocolWaveletDeltaProtoImpl(ProtocolWaveletDelta message) {
    if (message instanceof ProtocolWaveletDeltaProtoImpl) {
      return (ProtocolWaveletDeltaProtoImpl) message;
    } else {
      ProtocolWaveletDeltaProtoImpl messageImpl = new ProtocolWaveletDeltaProtoImpl();
      messageImpl.copyFrom(message);
      return messageImpl;
    }
  }
View Full Code Here

Examples of org.waveprotocol.wave.federation.proto.ProtocolWaveletDeltaProtoImpl

    if (jsonObject.has("2")) {
      JsonElement elem = jsonObject.get("2");
      {
        JsonArray array = elem.getAsJsonArray();
        for (int i = 0; i < array.size(); i++) {
          ProtocolWaveletDeltaProtoImpl payload = new ProtocolWaveletDeltaProtoImpl();
          GsonUtil.extractJsonObject(payload, array.get(i), gson, raw);
          addAppliedDelta(payload);
        }
      }
    }
View Full Code Here

Examples of org.waveprotocol.wave.federation.proto.ProtocolWaveletDeltaProtoImpl

    this.protoBuilder = null;
  }

  @Override
  public void copyFrom(WaveletUpdate message) {
    setDelta(new ProtocolWaveletDeltaProtoImpl(message.getDelta()));
    setResultingVersion(new ProtocolHashedVersionProtoImpl(message.getResultingVersion()));
    setApplicationTimpstamp(message.getApplicationTimpstamp());
  }
View Full Code Here

Examples of org.waveprotocol.wave.federation.proto.ProtocolWaveletDeltaProtoImpl

  }

  @Override
  public ProtocolWaveletDeltaProtoImpl getDelta() {
    switchToProto();
    return new ProtocolWaveletDeltaProtoImpl(proto.getDelta());
  }
View Full Code Here

Examples of org.waveprotocol.wave.federation.proto.ProtocolWaveletDeltaProtoImpl

  /** Get or create a ProtocolWaveletDeltaProtoImpl from a ProtocolWaveletDelta. */
  private ProtocolWaveletDeltaProtoImpl getOrCreateProtocolWaveletDeltaProtoImpl(ProtocolWaveletDelta message) {
    if (message instanceof ProtocolWaveletDeltaProtoImpl) {
      return (ProtocolWaveletDeltaProtoImpl) message;
    } else {
      ProtocolWaveletDeltaProtoImpl messageImpl = new ProtocolWaveletDeltaProtoImpl();
      messageImpl.copyFrom(message);
      return messageImpl;
    }
  }
View Full Code Here

Examples of org.waveprotocol.wave.federation.proto.ProtocolWaveletDeltaProtoImpl

    // before accessing this object.
    invalidateAll();
    if (jsonObject.has("1")) {
      JsonElement elem = jsonObject.get("1");
      {
        ProtocolWaveletDeltaProtoImpl payload = new ProtocolWaveletDeltaProtoImpl();
        GsonUtil.extractJsonObject(payload, elem, gson, raw);
        setDelta(payload);
      }
    }
    if (jsonObject.has("2")) {
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.