public interface Consumer extends Visitor
Visitorthat "consumes" a named object that has been added to the
Producerof some sort.
boolean consumes(Object object)
Producerthat is executing on the same element. The consumer should only return
falseif it knows for certain that it doesn't consumer the specified named object. If uncertain, it should error on the side of saying that it does consume the object.
object- The product representation
Copyright © 2020. All rights reserved.