org.apache.webbeans.arquillian.standalone
Class UrlSet
java.lang.Object
org.apache.webbeans.arquillian.standalone.UrlSet
- All Implemented Interfaces:
- Iterable<URL>, Collection<URL>, Set<URL>
public class UrlSet
- extends Object
- implements Set<URL>
A Set which only takes the externalForm
as key instead the very expensive hashCode.
This is a copy of the impl from openwebbeans-impl since
this Arquillian adaptor also runs with older OWB versions
which do not yet have this class.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UrlSet
public UrlSet()
add
public boolean add(URL url)
- Specified by:
add in interface Collection<URL>- Specified by:
add in interface Set<URL>
size
public int size()
- Specified by:
size in interface Collection<URL>- Specified by:
size in interface Set<URL>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Collection<URL>- Specified by:
isEmpty in interface Set<URL>
contains
public boolean contains(Object o)
- Specified by:
contains in interface Collection<URL>- Specified by:
contains in interface Set<URL>
iterator
public Iterator<URL> iterator()
- Specified by:
iterator in interface Iterable<URL>- Specified by:
iterator in interface Collection<URL>- Specified by:
iterator in interface Set<URL>
toArray
public Object[] toArray()
- Specified by:
toArray in interface Collection<URL>- Specified by:
toArray in interface Set<URL>
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray in interface Collection<URL>- Specified by:
toArray in interface Set<URL>
remove
public boolean remove(Object o)
- Specified by:
remove in interface Collection<URL>- Specified by:
remove in interface Set<URL>
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll in interface Collection<URL>- Specified by:
containsAll in interface Set<URL>
addAll
public boolean addAll(Collection<? extends URL> c)
- Specified by:
addAll in interface Collection<URL>- Specified by:
addAll in interface Set<URL>
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll in interface Collection<URL>- Specified by:
retainAll in interface Set<URL>
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll in interface Collection<URL>- Specified by:
removeAll in interface Set<URL>
clear
public void clear()
- Specified by:
clear in interface Collection<URL>- Specified by:
clear in interface Set<URL>
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.