org.objectweb.asm.tree.analysis
Class SmallSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet
          extended by org.objectweb.asm.tree.analysis.SmallSet
All Implemented Interfaces:
java.lang.Iterable, java.util.Collection, java.util.Iterator, java.util.Set

 class SmallSet
extends java.util.AbstractSet
implements java.util.Iterator

A set of at most two elements.

Author:
Eric Bruneton

Field Summary
(package private)  java.lang.Object e1
           
(package private)  java.lang.Object e2
           
(package private) static SmallSet EMPTY_SET
           
 
Constructor Summary
SmallSet(java.lang.Object e1, java.lang.Object e2)
           
 
Method Summary
 boolean hasNext()
           
 java.util.Iterator iterator()
           
 java.lang.Object next()
           
 void remove()
           
 int size()
           
(package private)  java.util.Set union(SmallSet s)
           
 
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.Set
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray
 

Field Detail

e1

java.lang.Object e1

e2

java.lang.Object e2

EMPTY_SET

static final SmallSet EMPTY_SET
Constructor Detail

SmallSet

SmallSet(java.lang.Object e1,
         java.lang.Object e2)
Method Detail

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface java.lang.Iterable
Specified by:
iterator in interface java.util.Collection
Specified by:
iterator in interface java.util.Set
Specified by:
iterator in class java.util.AbstractCollection

size

public int size()
Specified by:
size in interface java.util.Collection
Specified by:
size in interface java.util.Set
Specified by:
size in class java.util.AbstractCollection

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator

union

java.util.Set union(SmallSet s)