Example usage for org.apache.commons.collections4.map DefaultedMap DefaultedMap

List of usage examples for org.apache.commons.collections4.map DefaultedMap DefaultedMap

Introduction

In this page you can find the example usage for org.apache.commons.collections4.map DefaultedMap DefaultedMap.

Prototype

protected DefaultedMap(final Map<K, V> map, final Transformer<? super K, ? extends V> defaultValueTransformer) 

Source Link

Document

Constructor that wraps (not copies).

Usage

From source file:cherry.foundation.numbering.SimpleNumberingStore.java

@Override
public void afterPropertiesSet() {
    currentValueMap = DefaultedMap.defaultedMap(new HashMap<String, Long>(), Long.valueOf(0L));
    lockMap = new HashMap<String, Lock>();
}