/** * Returns {@code true} if the given URL is null, or if the given resource contains that URL. * * @param resource the value stored in the metadata object. * @param url the value parsed from the netCDF file. */ private static boolean canShare(final OnlineResource resource, final String url) { return (url == null) || (resource != null && canShare(resource.getLinkage().toString(), url)); }
/** * Returns {@code true} if the given URL is null, or if the given resource contains that URL. * * @param resource the value stored in the metadata object. * @param url the value parsed from the netCDF file. */ private static boolean canShare(final OnlineResource resource, final String url) { return (url == null) || (resource != null && canShare(resource.getLinkage().toString(), url)); }
/** * Returns {@code true} if the given email is null, or if the given address contains that email. * * @param address the value stored in the metadata object. * @param email the value parsed from the netCDF file. */ private static boolean canShare(final Address address, final String email) { return (email == null) || (address != null && canShare(address.getElectronicMailAddresses(), email)); }
/** * Returns {@code true} if the given email is null, or if the given address contains that email. * * @param address the value stored in the metadata object. * @param email the value parsed from the netCDF file. */ private static boolean canShare(final Address address, final String email) { return (email == null) || (address != null && canShare(address.getElectronicMailAddresses(), email)); }