Example usage for org.apache.commons.collections SetUtils transformedSet

List of usage examples for org.apache.commons.collections SetUtils transformedSet

Introduction

In this page you can find the example usage for org.apache.commons.collections SetUtils transformedSet.

Prototype

public static Set transformedSet(Set set, Transformer transformer) 

Source Link

Document

Returns a transformed set backed by the given set.

Usage

From source file:com.texeltek.accumulocloudbaseshim.ByteSequenceShim.java

@SuppressWarnings("unchecked")
public static Set<cloudbase.core.data.ByteSequence> cloudbaseSet(Set<ByteSequence> byteSequenceSet) {
    return SetUtils.transformedSet(byteSequenceSet, new Transformer() {
        @Override/*w w  w  .  ja va2 s.  c o m*/
        public Object transform(Object o) {
            return ((ByteSequence) o).impl;
        }
    });
}