Module xl.core

Interface ByteConsumer

All Known Implementing Classes:
ByteList, RoutineDescriptor

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

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

Author:
Ole Kniemeyer
  • Method Summary

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

    • consume

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