Class StateChannel.TriggerOnAny

  • All Implemented Interfaces:
    java.util.function.Consumer<Channel<java.lang.Boolean>>
    Enclosing class:
    StateChannel

    public static class StateChannel.TriggerOnAny
    extends java.lang.Object
    implements java.util.function.Consumer<Channel<java.lang.Boolean>>
    OnInit-Function for StateChannelDoc. The StateChannel gets set to true if any of the Source BooleanReadChannels is true.
    • Constructor Summary

      Constructors 
      Constructor Description
      TriggerOnAny​(ChannelId... sourceChannelIds)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(Channel<java.lang.Boolean> channel)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Consumer

        andThen
    • Constructor Detail

      • TriggerOnAny

        public TriggerOnAny​(ChannelId... sourceChannelIds)
    • Method Detail

      • accept

        public void accept​(Channel<java.lang.Boolean> channel)
        Specified by:
        accept in interface java.util.function.Consumer<Channel<java.lang.Boolean>>