Interface SocketAddressFilter

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 SocketAddressFilter
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 Type
    Method
    Description
    Applies the filter on the given address.
  • Method Details

    • apply

      SocketAddress apply(SocketAddress address) throws IOException
      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.