Examples of dec()


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

            it.moveToLast();
          }
          // Decrement the iterator while it is valid and pointing
          // at something greater than the current element.
          while (it.isValid() && is_before(it, it0, -1)) {
            it.dec();
          }

          // find placement
          if (it.isValid()) {
            heapify_up(it, i, -1);
View Full Code Here

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

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

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

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

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

   
    i = 0;
   
    IntKeyValueIterator it = ia.keyValueIterator();
    assertTrue(it.isValid());
    it.dec();
    assertFalse(it.isValid());
    it.inc();
    assertFalse(it.isValid());
    it.moveToLast();
    assertTrue(it.isValid());
View Full Code Here

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

    assertEquals(i, vs.length - 1);
    assertTrue(Arrays.equals(r, new Integer[] {1, 2, 3, 4, 5, 6, 7, null}));
   
    it = ia.pointerIterator();
    assertTrue(it.isValid());
    it.dec();
    assertFalse(it.isValid());
    it.inc();
    assertFalse(it.isValid());
    it.moveToLast();
    assertTrue(it.isValid());
View Full Code Here

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

    assertEquals(i, vs.length - 1);
    assertTrue(Arrays.equals(r, new Integer[] {1, 2, 3, 4, 5, 6, 7, null}));
   
    it = ia.pointerIterator();
    assertTrue(it.isValid());
    it.dec();
    assertFalse(it.isValid());
    it.inc();
    assertFalse(it.isValid());
    it.moveToLast();
    assertTrue(it.isValid());
View Full Code Here

Examples of org.elasticsearch.common.metrics.CounterMetric.dec()

            totalMetric.dec(sizeInBytes);

            String keyFieldName = fieldNames.indexName();
            CounterMetric total = perFieldTotals.get(keyFieldName);
            if (total != null) {
                total.dec(sizeInBytes);
            }
        }
    }
}
View Full Code Here

Examples of org.glassfish.grizzly.Writer.Reentrant.dec()

                localHandler.onWritePossible();
            } catch (Throwable t) {
                localHandler.onError(t);
            } finally {
                reentrant.dec();
            }
        }
    }

    // --------------------------------------------------------- Private Methods
View Full Code Here

Examples of org.glassfish.grizzly.Writer.Reentrant.dec()

                localHandler.onWritePossible();
            } catch (Throwable t) {
                localHandler.onError(t);
            } finally {
                reentrant.dec();
            }
        }
    }

    // --------------------------------------------------------- Private Methods
View Full Code Here

Examples of org.jquantlib.time.Date.dec()

        System.out.println("The date variable has been incremented to endOfMonth and is = "+date);

        // Let's decrement the same till beginning of the month
        date = today.clone();
        while (!date.eq(dateStartOfMonth)) {
            date.dec();
        }
        System.out.println("The date variable has been decremented to startOfMonth and is = "+date);

        // Let's update the todaysDate with the date just after it as the date is updatable
        today.addAssign(1);
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.