Examples of WaveletUpdateProtoImpl


Examples of org.waveprotocol.wave.concurrencycontrol.proto.WaveletUpdateProtoImpl

      setChannelId(message.getChannelId());
    } else {
      clearChannelId();
    }
    if (message.hasDelta()) {
      setDelta(new WaveletUpdateProtoImpl(message.getDelta()));
    } else {
      clearDelta();
    }
    if (message.hasCommitVersion()) {
      setCommitVersion(new ProtocolHashedVersionProtoImpl(message.getCommitVersion()));
View Full Code Here

Examples of org.waveprotocol.wave.concurrencycontrol.proto.WaveletUpdateProtoImpl

  }

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

Examples of org.waveprotocol.wave.concurrencycontrol.proto.WaveletUpdateProtoImpl

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

Examples of org.waveprotocol.wave.concurrencycontrol.proto.WaveletUpdateProtoImpl

    }
    if (jsonObject.has("2")) {
      JsonElement elem = jsonObject.get("2");
      if (!elem.isJsonNull()) {
        {
          WaveletUpdateProtoImpl payload = new WaveletUpdateProtoImpl();
          GsonUtil.extractJsonObject(payload, elem, gson, raw);
          setDelta(payload);
        }
      }
    }
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.