/** * Check whether a URI is a valid path URI * * @param uri the URI to check * * @see #pathURIChecker() */ public static void checkPathURI(final URI uri) { PATHURI_CHECKER.check(uri); }
public URIDownloadersRegistry() { super(URIUtils.schemeNormalizer(), URIUtils.schemeChecker(), Functions.<URIDownloader>identity(), ArgumentChecker.<URIDownloader>anythingGoes()); putAll(DEFAULT_DOWNLOADERS); }
public URIDownloadersRegistry() { super(URIUtils.schemeNormalizer(), URIUtils.schemeChecker(), Functions.<URIDownloader>identity(), ArgumentChecker.<URIDownloader>anythingGoes()); putAll(DEFAULT_DOWNLOADERS); }
/** * Check whether a given string as an argument is a legal URI scheme * * @param scheme the string to check * * @see #schemeChecker() */ public static void checkScheme(final String scheme) { SCHEME_CHECKER.check(scheme); }
public URIDownloadersRegistry() { super(URIUtils.schemeNormalizer(), URIUtils.schemeChecker(), Functions.<URIDownloader>identity(), ArgumentChecker.<URIDownloader>anythingGoes()); putAll(DEFAULT_DOWNLOADERS); }
/** * Check whether a given string as an argument is a legal URI scheme * * @param scheme the string to check * * @see #schemeChecker() */ public static void checkScheme(final String scheme) { SCHEME_CHECKER.check(scheme); }
/** * Check whether a URI is a valid path URI * * @param uri the URI to check * * @see #pathURIChecker() */ public static void checkPathURI(final URI uri) { PATHURI_CHECKER.check(uri); }
/** * Check whether a given string as an argument is a legal URI scheme * * @param scheme the string to check * * @see #schemeChecker() */ public static void checkScheme(final String scheme) { SCHEME_CHECKER.check(scheme); }
/** * Check that a URI is a valid schema URI * * @param uri the URI to check * * @see #schemaURIChecker() */ public static void checkSchemaURI(final URI uri) { SCHEMAURI_CHECKER.check(uri); } }
/** * Check that a URI is a valid schema URI * * @param uri the URI to check * * @see #schemaURIChecker() */ public static void checkSchemaURI(final URI uri) { SCHEMAURI_CHECKER.check(uri); } }
/** * Check whether a URI is a valid path URI * * @param uri the URI to check * * @see #pathURIChecker() */ public static void checkPathURI(final URI uri) { PATHURI_CHECKER.check(uri); }
/** * Check that a URI is a valid schema URI * * @param uri the URI to check * * @see #schemaURIChecker() */ public static void checkSchemaURI(final URI uri) { SCHEMAURI_CHECKER.check(uri); } }
/** * Add a key/value pair in this registry * * <p>Both the keys and values are first normalized, then checked; finally, * before insertion, the key/value pair is checked.</p> * * @param key the key * @param value the value * @return this * @throws NullPointerException the key or value is null * @throws IllegalArgumentException see {@link ArgumentChecker} */ public final Registry<K, V> put(final K key, final V value) { BUNDLE.checkNotNull(key, "mapBuilder.nullKey"); BUNDLE.checkNotNull(value, "mapBuilder.nullValue"); final K normalizedKey = keyNormalizer.apply(key); keyChecker.check(key); final V normalizedValue = valueNormalizer.apply(value); valueChecker.check(value); checkEntry(normalizedKey, normalizedValue); map.put(normalizedKey, normalizedValue); return this; }
/** * Add a key/value pair in this registry * * <p>Both the keys and values are first normalized, then checked; finally, * before insertion, the key/value pair is checked.</p> * * @param key the key * @param value the value * @return this * @throws NullPointerException the key or value is null * @throws IllegalArgumentException see {@link ArgumentChecker} */ public final Registry<K, V> put(final K key, final V value) { BUNDLE.checkNotNull(key, "mapBuilder.nullKey"); BUNDLE.checkNotNull(value, "mapBuilder.nullValue"); final K normalizedKey = keyNormalizer.apply(key); keyChecker.check(key); final V normalizedValue = valueNormalizer.apply(value); valueChecker.check(value); checkEntry(normalizedKey, normalizedValue); map.put(normalizedKey, normalizedValue); return this; }
/** * Add a key/value pair in this registry * * <p>Both the keys and values are first normalized, then checked; finally, * before insertion, the key/value pair is checked.</p> * * @param key the key * @param value the value * @return this * @throws NullPointerException the key or value is null * @throws IllegalArgumentException see {@link ArgumentChecker} */ public final Registry<K, V> put(final K key, final V value) { BUNDLE.checkNotNull(key, "mapBuilder.nullKey"); BUNDLE.checkNotNull(value, "mapBuilder.nullValue"); final K normalizedKey = keyNormalizer.apply(key); keyChecker.check(key); final V normalizedValue = valueNormalizer.apply(value); valueChecker.check(value); checkEntry(normalizedKey, normalizedValue); map.put(normalizedKey, normalizedValue); return this; }