Class DelegatingConsumerHandler<U>

  • Type Parameters:
    U -
    All Implemented Interfaces:
    io.vertx.core.Handler<U>, Consumer<U>

    public class DelegatingConsumerHandler<U>
    extends Object
    implements Consumer<U>, io.vertx.core.Handler<U>
    A class being a Consumer and a Handler at the same time, and which delegate hashCode() and equals(Object) to the consumer.
    • Constructor Detail

      • DelegatingConsumerHandler

        public DelegatingConsumerHandler​(Consumer<U> consumer)
    • Method Detail

      • handle

        public void handle​(U event)
        Specified by:
        handle in interface io.vertx.core.Handler<U>
      • accept

        public void accept​(U event)
        Specified by:
        accept in interface Consumer<U>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object