Module xl.core

Interface CharConsumer

All Known Implementing Classes:
CharList, RoutineDescriptor

public interface CharConsumer
CharConsumer is a callback interface. Its instances receive values of type char by invocation of their consume(char) method.

This interface is primarily intended for the declaration of generator methods of the XL programming language with return type char. Such methods have an additional parameter of type CharConsumer 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 char.

Author:
Ole Kniemeyer
  • Method Summary

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

    • consume

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