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.
Like
Predicate but takes two bytes as argument.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptiondefault PredicateBufferBinary<UnsignedByteBuffer> Derives a predicate with a different interface for operating onUnsignedByteBuffer.Derives a processor with a different interface for operating onUnsignedByteBuffer.booleantest(byte first, byte second) Do the combination of two arguments fulfill the predicate?
-
Method Details
-
test
boolean test(byte first, byte second) Do the combination of two arguments fulfill the predicate?- Parameters:
first- first argumentsecond- second argument- Returns:
- true if the arguments pass the predicate
-
deriveUnsignedBytePredicate
Derives a predicate with a different interface for operating onUnsignedByteBuffer.- Returns:
- the derived predicate.
-
deriveUnsignedByteProcessor
Derives a processor with a different interface for operating onUnsignedByteBuffer.- Returns:
- the derived processor.
-