Examples of MutableInt


Examples of org.apache.commons.lang3.mutable.MutableInt

        if (isEmpty(array) || isEmpty(values)) {
            return clone(array);
        }
        final HashMap<T, MutableInt> occurrences = new HashMap<T, MutableInt>(values.length);
        for (final T v : values) {
            final MutableInt count = occurrences.get(v);
            if (count == null) {
                occurrences.put(v, new MutableInt(1));
            } else {
                count.increment();
            }
        }
        final BitSet toRemove = new BitSet();
        for (final Map.Entry<T, MutableInt> e : occurrences.entrySet()) {
            final T v = e.getKey();
View Full Code Here

Examples of org.apache.commons.lang3.mutable.MutableInt

            return clone(array);
        }
        final HashMap<Byte, MutableInt> occurrences = new HashMap<Byte, MutableInt>(values.length);
        for (final byte v : values) {
            final Byte boxed = Byte.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<Byte, MutableInt> e : occurrences.entrySet()) {
            final Byte v = e.getKey();
View Full Code Here

Examples of org.apache.commons.lang3.mutable.MutableInt

            return clone(array);
        }
        final HashMap<Short, MutableInt> occurrences = new HashMap<Short, MutableInt>(values.length);
        for (final short v : values) {
            final Short boxed = Short.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<Short, MutableInt> e : occurrences.entrySet()) {
            final Short v = e.getKey();
View Full Code Here

Examples of org.apache.commons.lang3.mutable.MutableInt

            return clone(array);
        }
        final HashMap<Integer, MutableInt> occurrences = new HashMap<Integer, MutableInt>(values.length);
        for (final int v : values) {
            final Integer boxed = Integer.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<Integer, MutableInt> e : occurrences.entrySet()) {
            final Integer v = e.getKey();
View Full Code Here

Examples of org.milyn.lang.MutableInt

          // Create a reader for reading the EDI segments...
          segmentReader = new BufferedSegmentReader(ediInputSource, edifactModel.getDelimiters());
          segmentReader.setIgnoreNewLines(getFeature(FEATURE_IGNORE_NEWLINES));
         
          // Initialize the indent counter...
          indentDepth = new MutableInt(0);
         
          // Fire the startDocument event, as well as the startElement event...
          contentHandler.startDocument();
          parse(false);
          contentHandler.endDocument();
View Full Code Here

Examples of uk.co.thomasc.scrapbanktf.util.MutableInt

      final Map<Integer, Byte> classid = new HashMap<Integer, Byte>();
      final Map<Integer, MutableInt> scraped = new HashMap<Integer, MutableInt>();
      try {
        while (result.next()) {
          try {
            count.put(result.getInt("schemaid"), new MutableInt(result.getInt("stk")));
            classid.put(result.getInt("schemaid"), result.getByte("classid"));
            scraped.put(result.getInt("schemaid"), new MutableInt(0));
          } catch (final SQLException e) {
            e.printStackTrace();
          }
        }
      } catch (final SQLException e) {
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.