Package org.apache.commons.lang3.mutable

Examples of org.apache.commons.lang3.mutable.MutableLong.increment()


            final Long boxed = Long.valueOf(v);
            final MutableInt count = occurrences.get(boxed);
            if (count == null) {
                occurrences.put(boxed, new MutableInt(1));
            } else {
                count.increment();
            }
        }
        final BitSet toRemove = new BitSet();
        for (final Map.Entry<Long, MutableInt> e : occurrences.entrySet()) {
            final Long v = e.getKey();
View Full Code Here


            final Float boxed = Float.valueOf(v);
            final MutableInt count = occurrences.get(boxed);
            if (count == null) {
                occurrences.put(boxed, new MutableInt(1));
            } else {
                count.increment();
            }
        }
        final BitSet toRemove = new BitSet();
        for (final Map.Entry<Float, MutableInt> e : occurrences.entrySet()) {
            final Float v = e.getKey();
View Full Code Here

            final Double boxed = Double.valueOf(v);
            final MutableInt count = occurrences.get(boxed);
            if (count == null) {
                occurrences.put(boxed, new MutableInt(1));
            } else {
                count.increment();
            }
        }
        final BitSet toRemove = new BitSet();
        for (final Map.Entry<Double, MutableInt> e : occurrences.entrySet()) {
            final Double v = e.getKey();
View Full Code Here

            final Boolean boxed = Boolean.valueOf(v);
            final MutableInt count = occurrences.get(boxed);
            if (count == null) {
                occurrences.put(boxed, new MutableInt(1));
            } else {
                count.increment();
            }
        }
        final BitSet toRemove = new BitSet();
        for (final Map.Entry<Boolean, MutableInt> e : occurrences.entrySet()) {
            final Boolean v = e.getKey();
View Full Code Here

      total++;
      MutableLong count = stats.get(sr.r.getClass().getName());
      if (count == null)
        stats.put(sr.r.getClass().getName(), count = new MutableLong(1L));
      else
        count.increment();
    }

    for(Map.Entry<String, MutableLong> e : stats.entrySet())
      list.append("\t").append(e.getKey()).append(" : ").append(e.getValue().longValue()).append("\n");
View Full Code Here

      {
        stats.put(sr.r.getClass().getName(), count = new MutableLong(1L));
      }
      else
      {
        count.increment();
      }
    }
    for (Map.Entry<String, MutableLong> e : stats.entrySet())
    {
      list.append('\t').append(e.getKey()).append(" : ").append(e.getValue().longValue()).append('\n');
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.