/** * Tells if the list of HostAddresses contain a given HostAddress * @param address The {@link InetAddress} we are looking for * @return <tt>true</tt> if it's present */ public boolean contains(InetAddress address) { for (HostAddress hostAddress : getElements()) { if (hostAddress.equalsWith(address)) { return true; } } return false; } }
/** * Tells if the list of HostAddresses contain a given HostAddress * @param address The {@link InetAddress} we are looking for * @return <tt>true</tt> if it's present */ public boolean contains(InetAddress address) { for (HostAddress hostAddress : getElements()) { if (hostAddress.equalsWith(address)) { return true; } } return false; } }
if ( sessionInfoPriv.getEncPart().getSAddress() == null || !sessionInfoPriv.getEncPart().getSAddress().equalsWith( sAddress ) ) if ( sessionInfoPriv.getEncPart().getRAddress() != null && !sessionInfoPriv.getEncPart().getRAddress().equalsWith( rAddress ) )