public SocketAddress getLocalAddress() { return delegate.getLocalAddress(); }
public <S extends SocketAddress> S getLocalAddress(final Class<S> type) { return delegate.getLocalAddress(type); }
/** * Get the local address of this connection, cast to a specific type, if any. If there is an address but it * cannot be cast to the given type, {@code null} is returned. * * @param type the address type class * @param <S> the address type * @return the local address of this connection, or {@code null} if there is no local address or the address is * of the wrong type */ default <S extends SocketAddress> S getLocalAddress(Class<S> type) { final SocketAddress localAddress = getLocalAddress(); return type.isInstance(localAddress) ? type.cast(localAddress) : null; }
public SocketAddress getLocalAddress() { return channel.getConnection().getLocalAddress(); }
public SocketAddress getLocalAddress() { return delegate.getLocalAddress(); }
public <S extends SocketAddress> S getLocalAddress(final Class<S> type) { return delegate.getLocalAddress(type); }
/** * Get the local address of this connection, cast to a specific type, if any. If there is an address but it * cannot be cast to the given type, {@code null} is returned. * * @param type the address type class * @param <S> the address type * @return the local address of this connection, or {@code null} if there is no local address or the address is * of the wrong type */ default <S extends SocketAddress> S getLocalAddress(Class<S> type) { final SocketAddress localAddress = getLocalAddress(); return type.isInstance(localAddress) ? type.cast(localAddress) : null; }
public SocketAddress getLocalAddress() { return channel.getConnection().getLocalAddress(); }
public SocketAddress getLocalAddress() { return channel.getConnection().getLocalAddress(); }