Example usage for org.apache.commons.collections15.set MapBackedSet decorate

List of usage examples for org.apache.commons.collections15.set MapBackedSet decorate

Introduction

In this page you can find the example usage for org.apache.commons.collections15.set MapBackedSet decorate.

Prototype

public static <K, V> Set<K> decorate(Map<K, V> map) 

Source Link

Document

Factory method to create a set from a map.

Usage

From source file:de.dhke.projects.cutil.collections.frozen.FrozenSet.java

public FrozenSet(final Collection<? extends T> source) {
    final int capacity = source.size();
    _baseSet = MapBackedSet.decorate(new CuckooHashMap<T, Object>(capacity));
    _baseSet.addAll(source);/*from  w  ww.  j  a  v a2s .c o m*/
}