|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.SpyObject
net.spy.concurrent.Mapper<F,T>
public class Mapper<F,T>
Map a collection of objects with a given transformer.
| Constructor Summary | |
|---|---|
Mapper()
Construct a Mapper backed by an in-place executor. |
|
Mapper(java.util.concurrent.ExecutorService x)
Construct a Mapper backed by the given executor service. |
|
| Method Summary | |
|---|---|
java.util.List<T> |
transform(Transformer<F,T> trans,
java.util.Collection<? extends F> in)
Transform the given collection using the given transformer. |
| Methods inherited from class net.spy.SpyObject |
|---|
getLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Mapper()
public Mapper(java.util.concurrent.ExecutorService x)
| Method Detail |
|---|
public java.util.List<T> transform(Transformer<F,T> trans,
java.util.Collection<? extends F> in)
throws java.lang.InterruptedException
trans - the transformerin - the collection to transform
java.lang.InterruptedException - if we're interrupted while processing
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||