Package org.jboss.weld.util.collections
Class ListToSet<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<T>
-
- org.jboss.weld.util.collections.ListToSet<T>
-
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,Set<T>
public abstract class ListToSet<T> extends AbstractSet<T>
Provides a set-like read-only view on a givenList
. Modification of the underlying list is not supported.- Author:
- Jozef Hartinger
-
-
Constructor Summary
Constructors Constructor Description ListToSet()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract List<T>
delegate()
Iterator<T>
iterator()
int
size()
-
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
-
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-