Examples of decrement()


Examples of org.jquantlib.util.Date.decrement()

                }
            } else {
                while (n < 0) {
                    d1.decrement();
                    while (isHoliday(d1))
                        d1.decrement();
                    n++;
                }
            }
            return d1;
        } else if (unit == TimeUnit.WEEKS) {
View Full Code Here

Examples of org.odlabs.wiquery.ui.progressbar.ProgressBar.decrement()

    final AjaxLink<Void> decrementLink = new AjaxLink<Void>("decrementLink") {
      private static final long serialVersionUID = 1L;

      @Override
      public void onClick(AjaxRequestTarget target) {
        target.appendJavaScript(classicProgressBar.decrement().render());
      }
    };
    add(decrementLink);
  }
}
View Full Code Here

Examples of org.qi4j.api.metrics.MetricsCounter.decrement()

    }

    private void decrementCount()
    {
        MetricsCounter counter = getCounter();
        counter.decrement();
    }

    private MetricsCounter getCounter()
    {
        if( metrics != null )
View Full Code Here

Examples of org.rioproject.impl.watch.CounterWatch.decrement()

    @Test
    public void testModificatorMethods() throws RemoteException {
        CounterWatch watch = new CounterWatch("watch");
        checkData(new double[] {}, watch);

        watch.decrement();
        checkData(new double[] {-1}, watch);

        watch.decrement(10);
        checkData(new double[] {-1, -11}, watch);
View Full Code Here

Examples of org.rioproject.opstring.OperationalStringManager.decrement()

            ServiceBeanInstance[] instances =
                cybernode.getServiceBeanInstances(opstring.getServices()[0]);
            Assert.assertEquals(1, instances.length);
            Simple simple = (Simple)instances[0].getService();
            Assert.assertEquals("Hello visitor : 1", simple.hello("hi"));
            mgr.decrement(instances[0], true, true);
            ServiceMonitor<Simple> sMon =
                new ServiceMonitor<Simple>(testManager.getServiceDiscoveryManager(), Simple.class);
            sMon.waitFor(0);
            instances =
                cybernode.getServiceBeanInstances(opstring.getServices()[0]);
View Full Code Here

Examples of org.springframework.osgi.extender.internal.util.concurrent.Counter.decrement()

    ServiceListener listener = new ServiceListener() {

      public void serviceChanged(ServiceEvent event) {
        if (event.getType() == ServiceEvent.REGISTERED)
          counter.decrement();
      }
    };

    OsgiListenerUtils.addServiceListener(context, listener, filter);
View Full Code Here

Examples of org.springframework.xd.analytics.metrics.core.Counter.decrement()

  }

  @Override
  public synchronized long decrement(String name) {
    Counter c = getOrCreate(name);
    return c.decrement(1L);
  }

  @Override
  public synchronized void reset(String name) {
    save(new Counter(name));
View Full Code Here

Examples of org.wso2.carbon.registry.core.statistics.query.StatisticsRecord.decrement()

    private void endDBQueryLog(int level) {
        if (dbQueryLog.isDebugEnabled()) {
            StackTraceElement traceElement = Thread.currentThread().getStackTrace()[level];
            if (traceElement.getClassName().equals(this.getClass().getCanonicalName())) {
                StatisticsRecord statisticsRecord = DBQueryStatisticsLog.getStatisticsRecord();
                if (statisticsRecord.decrement() == 0) {
                    final StatisticsRecord clone = new StatisticsRecord(statisticsRecord);
                    Runnable runnable = new Runnable() {
                        public void run() {
                            if (clone.getTableRecords().length > 0) {
                                dbQueryLog.debug("");
View Full Code Here

Examples of org.zanata.rest.dto.stats.TranslationStatistics.decrement()

                stats.getStats(localeId.getId(), StatUnit.WORD);

        msgStatistic.decrement(updateInfo.getPreviousState(), 1);
        msgStatistic.increment(updateInfo.getTransUnit().getStatus(), 1);

        wordStatistic.decrement(updateInfo.getPreviousState(),
                updateInfo.getSourceWordCount());
        wordStatistic.increment(updateInfo.getTransUnit().getStatus(),
                updateInfo.getSourceWordCount());
    }
View Full Code Here

Examples of org.zanata.ui.model.statistic.WordStatistic.decrement()

        WordStatistic stats = versionStatisticCache.get(key);
        if (stats != null) {
            TextFlowDAO textFlowDAO = serviceLocator.getInstance(TextFlowDAO.class);
            HTextFlow textFlow = textFlowDAO.findById(event.getTextFlowId());

            stats.decrement(event.getPreviousState(),
                    textFlow.getWordCount().intValue());
            stats.increment(event.getNewState(),
                    textFlow.getWordCount().intValue());
            versionStatisticCache.put(key, stats);
        }
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.