Example usage for org.apache.commons.collections.iterators TransformIterator subclass-usage

List of usage examples for org.apache.commons.collections.iterators TransformIterator subclass-usage

Introduction

In this page you can find the example usage for org.apache.commons.collections.iterators TransformIterator subclass-usage.

Usage

From source file com.texeltek.accumulocloudbaseshim.KeyValueWrappingIterator.java

public class KeyValueWrappingIterator extends TransformIterator {
    public KeyValueWrappingIterator(Iterator<Map.Entry<Key, Value>> iter) {
        super(iter, new Transformer() {
            public Object transform(Object input) {
                Map.Entry<cloudbase.core.data.Key, cloudbase.core.data.Value> entry = (Map.Entry<cloudbase.core.data.Key, cloudbase.core.data.Value>) input;
                return new CloudbaseEntryShim(new Key(entry.getKey()), new Value(entry.getValue()));