Interface Consumer

    • Method Detail

      • consumes

        boolean consumes​(Object object)
        Does this consumer consume the specified named object.

        The named object would be a product of a Producer that is executing on the same element. The consumer should only return false if 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.

        Parameters:
        object - The product representation
        Returns:
        True if the consumer consumes the specified product, otherwise false.