Interface PredicateTwoBytes

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 PredicateTwoBytes
Like Predicate but takes two bytes as argument.
Author:
Owen Feehan
  • Method Details

    • test

      boolean test(byte first, byte second)
      Do the combination of two arguments fulfill the predicate?
      Parameters:
      first - first argument
      second - second argument
      Returns:
      true if the arguments pass the predicate
    • deriveUnsignedBytePredicate

      default PredicateBufferBinary<UnsignedByteBuffer> deriveUnsignedBytePredicate()
      Derives a predicate with a different interface for operating on UnsignedByteBuffer.
      Returns:
      the derived predicate.
    • deriveUnsignedByteProcessor

      default ProcessBufferBinary<UnsignedByteBuffer,UnsignedByteBuffer> deriveUnsignedByteProcessor()
      Derives a processor with a different interface for operating on UnsignedByteBuffer.
      Returns:
      the derived processor.