Example usage for org.apache.commons.lang3.mutable MutableFloat MutableFloat

List of usage examples for org.apache.commons.lang3.mutable MutableFloat MutableFloat

Introduction

In this page you can find the example usage for org.apache.commons.lang3.mutable MutableFloat MutableFloat.

Prototype

public MutableFloat() 

Source Link

Document

Constructs a new MutableFloat with the default value of zero.

Usage

From source file:org.astrojournal.generator.statistics.BasicStatistics.java

/**
 * Increment the counting for this target type.
 * // w  ww .  ja  va 2s  .  c  o  m
 * @param map
 *            The map to use
 * @param type
 *            The type to increment.
 */
private void incrementFloatMap(HashMap<String, MutableFloat> map, String type) {
    if (!map.containsKey(type)) {
        map.put(type, new MutableFloat());
    }
    map.get(type).increment();
}