Package org.waveprotocol.wave.model.util.ReadableStringSet

Examples of org.waveprotocol.wave.model.util.ReadableStringSet.Proc


    Preconditions.checkPositionIndexes(start, end, annotations.size());
    Preconditions.checkNotNull(keys, "GenericAnnotationCursor: Key set must not be null");

    this.annotations = annotations;
    this.end = end;
    keys.each(new Proc() {
      @Override
      public void apply(String key) {
        advance(new KeyLocation(key, start));
      }
    });
View Full Code Here


        return;
      }

      // Make annotations and diffFromLeft reflect the first interval
      // make every keyEntry point to the next change for that key
      keys.each(new Proc() {
        @Override
        public void apply(String key) {
          V startValue = set.getAnnotation(start, key);
          V valueLeft;
          if (start == 0) {
View Full Code Here

      if (start >= end) {
        // entries remains empty.
        return;
      }

      keys.each(new Proc() {
        @Override
        public void apply(String key) {
          V firstValue = a.getAnnotation(start, key);
          int firstStart;
          firstStart = a.lastAnnotationChange(0, start, key, firstValue);
View Full Code Here

        new DefaultAnnotationBehaviour(AnnotationFamily.CONTENT) {
      @Override
      public BiasDirection getBias(final StringMap<Object> left, final StringMap<Object> right,
          CursorDirection cursor) {
        final Box<BiasDirection> ret = Box.create(BiasDirection.NEITHER);
        KEYS.each(new Proc() {
          @Override
          public void apply(String key) {
            if (left.get(key) != null) {
              ret.boxed = BiasDirection.RIGHT;
            } else if (right.get(key) != null) {
View Full Code Here

          ret.put(entry.getKey(), (String) entry.getValue());
        }
        return ret;
      }
    });
    boundaryKeys.each(new Proc() {
      @Override
      public void apply(String key) {
        final String k = key;
        painterRegistry.registerBoundaryFunction(boundaryKeys, new BoundaryFunction() {
          @Override
View Full Code Here

      @Override
      public void apply(String key, GadgetState value) {
        keys.add(key);
      }
    });
    keys.each(new Proc() {
      @Override
      public void apply(String key) {
        gadgetSupplements.get(key).remove();
      }
    });
View Full Code Here

    }
    return annotations.lastAnnotationChange(start, end, key, fromValue);
  }

  void checkValidPersistentKeys(ReadableStringSet keys) {
    keys.each(new Proc() {
      @Override
      public void apply(String key) {
        Annotations.checkPersistentKey(key);
      }
    });
View Full Code Here

  }

  @Override
  public StringSet knownKeys() {
    final StringSet knownKeys = CollectionUtils.createStringSet();
    annotations.knownKeysLive().each(new Proc() {
      @Override
      public void apply(String key) {
        if (!Annotations.isLocal(key)) {
          knownKeys.add(key);
        }
View Full Code Here

                open.remove(key);
              }
            }
          });
        }
        open.each(new Proc() {
          @Override
          public void apply(String key) {
            events.add(new AnnotationEndEvent(finalLocation, key));
          }
        });
View Full Code Here

      //System.out.print(" ---> " + requestedValues + ",   " + newValues + ",   " + endKeys);
      //System.out.println(",   " + deletionValues);
    }

    private void closeEndKeys() {
      endKeys.each(new Proc() {
        @Override
        public void apply(String key) {
          builder.endAnnotation(key);
        }
      });
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.model.util.ReadableStringSet.Proc

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.