Examples of moveToLast()


Examples of org.apache.uima.internal.util.ComparableIntPointerIterator.moveToLast()

          if (i != this.currentIndex) {
            it = this.indexes[i];
            // while (it.isValid() &&
            // (it.compareTo(indexes[this.currentIndex]) > 0)) {
            if (!it.isValid()) {
              it.moveToLast();
            }
            while (it.isValid()
                && (this.iteratorComparator
                    .compare(it.get(), this.indexes[this.currentIndex].get()) > 0)) {
              it.dec();
View Full Code Here

Examples of org.apache.uima.internal.util.ComparableIntPointerIterator.moveToLast()

          if (i != this.currentIndex) {
            it = this.indexes[i];
            // while (it.isValid() &&
            // (it.compareTo(indexes[this.currentIndex]) > 0)) {
            if (!it.isValid()) {
              it.moveToLast();
            }
            while (it.isValid()
                && (this.iteratorComparator
                    .compare(it.get(), this.indexes[this.currentIndex].get()) > 0)) {
              it.dec();
View Full Code Here

Examples of org.apache.uima.internal.util.IntKeyValueIterator.moveToLast()

    assertTrue(it.isValid());
    it.dec();
    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());
View Full Code Here

Examples of org.apache.uima.internal.util.IntPointerIterator.moveToLast()

    assertTrue(it.isValid());
    it.dec();
    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());
View Full Code Here

Examples of org.apache.uima.internal.util.IntPointerIterator.moveToLast()

    assertTrue(it.isValid());
    it.dec();
    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());
View Full Code Here

Examples of ptolemy.kernel.util.NamedObj.moveToLast()

                    if (type == DOWN) {
                        priorIndexes[i] = target.moveDown();
                    } else if (type == TO_FIRST) {
                        priorIndexes[i] = target.moveToFirst();
                    } else if (type == TO_LAST) {
                        priorIndexes[i] = target.moveToLast();
                    } else {
                        priorIndexes[i] = target.moveUp();
                    }

                    if (priorIndexes[i] >= 0) {
View Full Code Here

Examples of ptolemy.kernel.util.NamedObj.moveToLast()

                    if (type == DOWN) {
                        priorIndexes[i] = target.moveDown();
                    } else if (type == TO_FIRST) {
                        priorIndexes[i] = target.moveToFirst();
                    } else if (type == TO_LAST) {
                        priorIndexes[i] = target.moveToLast();
                    } else {
                        priorIndexes[i] = target.moveUp();
                    }

                    if (priorIndexes[i] >= 0) {
View Full Code Here

Examples of ptolemy.vergil.kernel.attributes.LineAttribute.moveToLast()

            protected void _execute() throws Exception {
                try {
                    super._execute();
                    LineAttribute line = (LineAttribute) getContainer()
                            .getAttribute(lineName);
                    line.moveToLast();
                    line.setPersistent(false);
                } catch (Exception e) {
                    // Do nothing.
                }
            }
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.