Package org.waveprotocol.wave.model.operation.testing.StringDomain.StringOp

Examples of org.waveprotocol.wave.model.operation.testing.StringDomain.StringOp.Insert


    String str = state.toString();
    int remainingLength = str.length();
    while (numComponents > 0 && remainingLength >= 0) {
      if (remainingLength == 0) {
        components.add(new Insert((char) (random.nextInt(26) + 'A')));
      } else {
        switch (random.nextInt(3)) {
        case 0:
          components.add(new Insert((char) (random.nextInt(26) + 'A')));
          break;
        case 1:
          components.add(new Delete(str.charAt(str.length() - remainingLength)));
          remainingLength--;
          break;
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.model.operation.testing.StringDomain.StringOp.Insert

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.