Package com.diozero.api.function
Class FloatConsumerCollection
- java.lang.Object
-
- com.diozero.api.function.FloatConsumerCollection
-
- All Implemented Interfaces:
FloatConsumer
public class FloatConsumerCollection extends Object implements FloatConsumer
A collection of output devices to simplify setting the same output value for a number of devices at the same time
-
-
Constructor Summary
Constructors Constructor Description FloatConsumerCollection(Collection<FloatConsumer> devices)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(float value)
Set the same value to all output devices in this collectionCollection<FloatConsumer>
getDevices()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.diozero.api.function.FloatConsumer
andThen
-
-
-
-
Constructor Detail
-
FloatConsumerCollection
public FloatConsumerCollection(Collection<FloatConsumer> devices)
-
-
Method Detail
-
getDevices
public Collection<FloatConsumer> getDevices()
-
accept
public void accept(float value)
Set the same value to all output devices in this collection- Specified by:
accept
in interfaceFloatConsumer
- Parameters:
value
- the input argument
-
-