Package org.apache.axis.utils
Class URLHashSet
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet
org.apache.axis.utils.URLHashSet
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable
,Collection
,Set
Class URLHashSet
- Author:
- Davanum Srinivas (dims@apache.org)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Adds the specified URL to this set if it is not already present.boolean
Returns true if this set contains the specified element.static URL
if the url points to a file then make sure we cleanup ".." "." etc.boolean
Removes the given URL from this set if it is present.Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size, spliterator, toArray, toArray
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
URLHashSet
public URLHashSet()
-
-
Method Details
-
add
Adds the specified URL to this set if it is not already present.- Parameters:
url
- url to be added to this set.- Returns:
- true if the set did not already contain the specified element.
-
remove
Removes the given URL from this set if it is present.- Parameters:
url
- url to be removed from this set, if present.- Returns:
- true if the set contained the specified element.
-
contains
Returns true if this set contains the specified element.- Parameters:
url
- url whose presence in this set is to be tested.- Returns:
- true if this set contains the specified element.
-
normalize
if the url points to a file then make sure we cleanup ".." "." etc.- Parameters:
url
- url to be normalized- Returns:
- normalized url
-