Examples of removeAt()


Examples of gnu.trove.list.array.TIntArrayList.removeAt()

        : sequence.length;

    //part 1
    for (int seqIx = seqStart; seqIx < seqEnd; ++seqIx) {
      if (structure[seqIx] == CLOSE_BRACKET) {
        int left = leftBrackets.removeAt(leftBrackets.size() - 1);
        pairs[left] = seqIx;
        pairs[seqIx] = left;
        if (!leftBrackets.isEmpty()) {
          ++branches[leftBrackets.get(leftBrackets.size() - 1)];
        }
View Full Code Here

Examples of gnu.trove.list.array.TIntArrayList.removeAt()

      uList.resetQuick();
    } else {
      int index = this.getNeighborIx(u, v);
      // switch the out edge in the list
      uList.set(index, uList.get(uList.size() - 1));
      uList.removeAt(index);
    }
    final TIntArrayList vList = this.adjLists.get(v);
    if (vList.size() == 1) {
      vList.resetQuick();
    } else {
View Full Code Here

Examples of gnu.trove.list.array.TIntArrayList.removeAt()

      vList.resetQuick();
    } else {
      int index = this.getNeighborIx(v, u);
      // switch the out edge in the list
      vList.set(index, vList.get(vList.size() - 1));
      vList.removeAt(index);
    }
    edgeNum--;
    calcMaxDeg();
  }
View Full Code Here

Examples of siena.Json.removeAt()

    assertEquals(3, json.at(2).asInt());
  }
 
  public void testRemoveAt() {
    Json json = Json.list(1, 2, 3);
    json.removeAt(1);

    assertEquals(2, json.size());
    assertEquals(1, json.at(0).asInt());
    assertEquals(3, json.at(1).asInt());
  }
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.