public class URLHashSet extends HashSet
| Constructor and Description |
|---|
URLHashSet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(URL url)
Adds the specified URL to this set if it is not already present.
|
boolean |
contains(URL url)
Returns true if this set contains the specified element.
|
static URL |
normalize(URL url)
if the url points to a file then make sure we cleanup ".." "." etc.
|
boolean |
remove(URL url)
Removes the given URL from this set if it is present.
|
add, clear, clone, contains, isEmpty, iterator, remove, sizeequals, hashCode, removeAlladdAll, containsAll, retainAll, toArray, toArray, toStringpublic boolean add(URL url)
url - url to be added to this set.public boolean remove(URL url)
url - url to be removed from this set, if present.public boolean contains(URL url)
url - url whose presence in this set is to be tested.Copyright © The Apache Software Foundation. All Rights Reserved.