public static class Machine.MachineStateExtractor extends Object implements com.google.common.base.Function<Machine,MachineState>
Function that when applied to a Machine
extracts the Machine's state.
Can be used to transform a collection of Machines to a collection
of MachineState. See
Iterables.transform(Iterable, Function).http://code.google.com/p/guava-libraries/wiki/FunctionalExplained| Constructor and Description |
|---|
MachineStateExtractor() |
| Modifier and Type | Method and Description |
|---|---|
MachineState |
apply(Machine machine)
Extracts the state of a
Machine. |
public MachineState apply(Machine machine)
Machine.apply in interface com.google.common.base.Function<Machine,MachineState>Function.apply(Object)Copyright © 2011–2017 Elastisys. All rights reserved.