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>
Provides a set-like read-only view on a given
List. Modification of the underlying list is not supported.- Author:
- Jozef Hartinger
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
ListToSet
public ListToSet()
-
-
Method Details
-
delegate
-
iterator
-
size
public int size()- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceSet<T>- Specified by:
sizein classAbstractCollection<T>
-