- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A filter that takes a
SocketAddress
, and potentially changes it, or throws an exception
if certain criteria are met.- Author:
- Christian Kohlschütter
-
Method Summary
Modifier and TypeMethodDescriptionapply
(SocketAddress address) Applies the filter on the given address.
-
Method Details
-
apply
Applies the filter on the given address.- Parameters:
address
- The address.- Returns:
- The address itself or a changed address.
- Throws:
IOException
- on error or if a certain error condition is desired.
-