Top Description Methods
org.newsclub.net.unix

public Interface SocketAddressFilter

Annotations
@FunctionalInterface
Imports
java.io.IOException, java.net.SocketAddress

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 TypeMethod and Description
public SocketAddress

Returns:

The address itself or a changed address.
apply
(SocketAddress
The address.
address
)

Applies the filter on the given address.

Method Detail

applyback to summary
public SocketAddress apply(SocketAddress address) throws IOException

Applies the filter on the given address.

Parameters
address:SocketAddress

The address.

Returns:SocketAddress

The address itself or a changed address.

Exceptions
IOException:
on error or if a certain error condition is desired.