Module xl.core

Interface ObjectConsumer<T>

All Known Implementing Classes:
EventSupport.Queue, GraphQueueImpl, ObjectList, PickRayVisitor, PickToolVisitor, RoutineDescriptor, TreeIterator, Visitor2D

public interface ObjectConsumer<T>
ObjectConsumer is a callback interface. Its instances receive values of type T by invocation of their consume(T) method.

This interface is primarily intended for the declaration of generator methods of the XL programming language with return type T. Such methods have an additional parameter of type ObjectConsumer to which they send the generated values.

However, this interface may also be used for similar purposes where a callback instance is needed as a receiver of values of type T.

Author:
Ole Kniemeyer
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    consume(T value)
    Receives a value of type T.
  • Method Details

    • consume

      void consume(T value)
      Receives a value of type T.