Package org.waveprotocol.wave.model.id

Examples of org.waveprotocol.wave.model.id.IdGenerator


    }

    /** @return a sample wave with a conversation in it. */
    private static WaveViewData createSampleWave() {
      final ParticipantId sampleAuthor = ParticipantId.ofUnsafe("nobody@example.com");
      IdGenerator gen = FakeIdGenerator.create();
      final WaveViewDataImpl waveData = WaveViewDataImpl.create(gen.newWaveId());
      final DocumentFactory<?> docFactory = BasicFactories.fakeDocumentFactory();
      final ObservableWaveletData.Factory<?> waveletDataFactory =
          new ObservableWaveletData.Factory<WaveletDataImpl>() {
            private final ObservableWaveletData.Factory<WaveletDataImpl> inner =
                WaveletDataImpl.Factory.create(docFactory);
View Full Code Here


    return new Builder(schemas);
  }

  @Override
  public OpBasedWavelet create() {
    IdGenerator gen = FakeIdGenerator.create();
    return create(gen.newWaveId(), gen.newConversationWaveletId(), FAKE_PARTICIPANT);
  }
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.model.id.IdGenerator

Copyright © 2018 www.massapicom. 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.