Interface DestinationChannelForIndex

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface DestinationChannelForIndex
Selects a destination-channel for the byte-copier, given an index

As a byte-array can contain more than one channel, an index determines which destination-channel is selected

Author:
Owen Feehan
  • Method Summary

    Modifier and Type
    Method
    Description
    get(int index)
    Retrieves the channel corresponding to a particular index.
  • Method Details

    • get

      Channel get(int index)
      Retrieves the channel corresponding to a particular index.
      Parameters:
      index - the index (beginning at 0).
      Returns:
      the corresponding channel.