Package org.objectweb.asm.tree.analysis
Class SmallSet<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<T>
-
- org.objectweb.asm.tree.analysis.SmallSet<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>
,java.util.Collection<T>
,java.util.Set<T>
final class SmallSet<T> extends java.util.AbstractSet<T>
An immutable set of at most two elements, optimized for speed compared to a generic set implementation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
SmallSet.IteratorImpl<T>
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<T>
iterator()
int
size()
(package private) java.util.Set<T>
union(SmallSet<T> otherSet)
Returns the union of this set and of the given set.-
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
-
-