7071727374757677787980
public void run() { try { cl.countDown(); int k = blocker.waitForResult("man", 1000); assertEquals(1546, k); c.inc(); } catch (Exception e) { } } };
4344454647484950515253
Timer timer2 = registry.newTimer("testt", "b"); Timer timer3 = registry.newTimer("testt2", "c"); counter1.inc(); counter2.inc(2); counter3.inc(4); gauge1.set("5"); gauge2.set("6"); gauge3.set("7"); gauge4.set("8");
434435436437438439440441442443444
} final ComparableIntPointerIterator it0 = checkConcurrentModification(0); if (this.wentForward) { it0.inc(); heapify_down(it0, 1); } else { // We need to increment everything. int lvi = this.indexes.length - 1; int i = 1;
453454455456457458459460461462463
it.moveToFirst(); } // Increment the iterator while it is valid and pointing // at something smaller than the current element. while (it.isValid() && is_before(it, it0, 1)) { it.inc(); } // find placement if (it.isValid()) { heapify_up(it, i, 1);
6061626364656667686970
IntKeyValueIterator it = ia.keyValueIterator(); assertTrue(it.isValid()); it.dec(); assertFalse(it.isValid()); it.inc(); assertFalse(it.isValid()); it.moveToLast(); assertTrue(it.isValid()); it.inc(); assertFalse(it.isValid());
6465666768697071727374
assertFalse(it.isValid()); it.inc(); assertFalse(it.isValid()); it.moveToLast(); assertTrue(it.isValid()); it.inc(); assertFalse(it.isValid()); // it.dec(); // causes infinite loop // assertFalse(it.isValid()); }
4748495051525354555657
i = 0; IntPointerIterator it = ia.pointerIterator(); while (it.isValid()) { r[i++] = it.get(); it.inc(); } assertEquals(i, vs.length - 1); assertTrue(Arrays.equals(r, new Integer[] {1, 2, 3, 4, 5, 6, 7, null})); it = ia.pointerIterator();
5657585960616263646566
it = ia.pointerIterator(); assertTrue(it.isValid()); it.dec(); assertFalse(it.isValid()); it.inc(); assertFalse(it.isValid()); it.moveToLast(); assertTrue(it.isValid()); it.inc(); assertFalse(it.isValid());
15181519152015211522152315241525152615271528
set = new SortedIntSet(); for (int k = 0; k < cv.size(); k++) { it = cv.get(k).index.refIterator(); while (it.isValid()) { set.add(it.get()); it.inc(); } } v.add(set.getArray(), 0, set.size()); // bulk add of all elements // for (int k = 0; k < set.size(); k++) { // v.add(set.get(k));