Examples of increment()


Examples of edu.umd.cloud9.util.map.HMapIL.increment()

  @Test
  public void testIncrement() {
    HMapIL m = new HMapIL();
    assertEquals(0, m.get(1));

    m.increment(1, 1);
    assertEquals(1, m.get(1));

    m.increment(1, 1);
    m.increment(2, 0);
    m.increment(3, -1);
View Full Code Here

Examples of edu.umd.cloud9.util.map.HMapIS.increment()

  @Test
  public void testIncrement() {
    HMapIS m = new HMapIS();
    assertEquals(0, m.get(1));

    m.increment(1, (short) 1);
    assertEquals(1, m.get(1));

    m.increment(1, (short) 1);
    m.increment(2, (short) 0);
    m.increment(3, (short) -1);
View Full Code Here

Examples of er.extensions.foundation.ERXMutableInteger.increment()

     * </span>
     */
    private ERXMutableInteger _incrementReferenceCounterForKey(String key) {
        ERXMutableInteger count = (ERXMutableInteger)_referenceCounters().objectForKey(key);
        if (count != null)
            count.increment();
        else {
            count = new ERXMutableInteger(1);
            _referenceCounters().setObjectForKey(count, key);
        }
        if (log.isDebugEnabled())
View Full Code Here

Examples of flexjson.TypeContext.increment()

    public void transform(Object object) {
        Iterable iterable = (Iterable) object;
        TypeContext typeContext = getContext().writeOpenArray();
        for (Object item : iterable) {
            if (!typeContext.isFirst()) getContext().writeComma();
            typeContext.increment();
            getContext().transform(item);
        }
        getContext().writeCloseArray();
    }
View Full Code Here

Examples of gnu.trove.map.TIntLongMap.increment()

            map.put( i, i * i );
        }

        for ( int i = 1; i <= element_count; i++ ) {
            if ( i % 2 == 0 ) {
                map.increment( i );
            }
        }

        for ( int i = 1; i <= element_count; i++ ) {
            if ( i % 2 == 0 ) {
View Full Code Here

Examples of httl.util.Status.increment()

        if (ClassUtils.isTrue(Context.getContext().get(breakVariable))) {
          Context.getContext().remove(breakVariable);
          break loop;
        }
      }
      status.increment();
    }
    for (String var : forVariable) {
      Context.getContext().put(var, status.getParent());
    }
    return false;
View Full Code Here

Examples of io.airlift.testing.TestingTicker.increment()

        {
            @Override
            public Response apply(Request input)
            {
                Duration delta = tickerIncrement.get();
                ticker.increment(delta.toMillis(), TimeUnit.MILLISECONDS);
                throw new RuntimeException("Foo");
            }
        };

        CyclicBarrier requestComplete = new CyclicBarrier(2);
View Full Code Here

Examples of io.druid.query.aggregation.TestFloatColumnSelector.increment()

    final TestFloatColumnSelector selector = new TestFloatColumnSelector(VALUES);

    ApproximateHistogramAggregator agg = new ApproximateHistogramAggregator("price", selector, 10, Float.NEGATIVE_INFINITY, Float.POSITIVE_INFINITY);
    for (int i = 0; i < VALUES.length; i++) {
      agg.aggregate();
      selector.increment();
    }

    Map<String, Object> metricValues = new HashMap<String, Object>();
    metricValues.put(agg.getName(), agg.get());
View Full Code Here

Examples of io.druid.segment.data.Offset.increment()

      Offset clonedOffset = offset.clone();
      while (clonedOffset.withinBounds()) {
        Assert.assertEquals(vals[cloneCount], clonedOffset.getOffset());

        ++cloneCount;
        clonedOffset.increment();
      }

      ++count;
      offset.increment();
    }
View Full Code Here

Examples of io.fabric8.utils.CountingMap.increment()

        hostContainerCounts.setCount(host, count);
    }

    public int incrementProfileCount(String host, String profileId) {
        CountingMap countingMap = profileCounts(host);
        return countingMap.increment(profileId);
    }

    public CountingMap profileCounts(String host) {
        CountingMap countingMap = hostToProfileCounts.get(host);
        if (countingMap == null) {
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.