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

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

Introduction

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

Prototype

protected PredicatedMap(final Map<K, V> map, final Predicate<? super K> keyPredicate,
        final Predicate<? super V> valuePredicate) 

Source Link

Document

Constructor that wraps (not copies).

Usage

From source file:com.joyent.manta.client.MantaMetadata.java

/**
 * Create a new instance backed with a new empty map.
 *//*from  ww w . ja va2s. com*/
public MantaMetadata() {
    final Map<String, String> map = new CaseInsensitiveMap<>();
    final Predicate<String> keyPredicate = new HttpHeaderNameKeyPredicate();
    this.innerMap = PredicatedMap.predicatedMap(map, keyPredicate, null);
}