org.biojava.utils
Class MergingSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet
          extended by org.biojava.utils.MergingSet
All Implemented Interfaces:
java.lang.Iterable, java.util.Collection, java.util.Set

public class MergingSet
extends java.util.AbstractSet

Author:
Matthew Pocock

Constructor Summary
MergingSet()
           
MergingSet(java.util.Set sets)
           
 
Method Summary
 boolean add(java.lang.Object o)
           
 void addSet(java.util.Set set)
           
 boolean contains(java.lang.Object o)
           
 java.util.Set getModifiable()
           
 java.util.Iterator iterator()
           
static MergingSet merge(java.util.Set first, java.util.Set seccond)
           
static MergingSet modifiableMerge()
           
static MergingSet modifiableMerge(java.util.Set original)
           
 boolean remove(java.lang.Object o)
           
 boolean removeSet(java.util.Set set)
           
 int size()
           
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, clear, containsAll, isEmpty, 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
addAll, clear, containsAll, isEmpty, retainAll, toArray, toArray
 

Constructor Detail

MergingSet

public MergingSet()

MergingSet

public MergingSet(java.util.Set sets)
Method Detail

merge

public static MergingSet merge(java.util.Set first,
                               java.util.Set seccond)

modifiableMerge

public static MergingSet modifiableMerge()

modifiableMerge

public static MergingSet modifiableMerge(java.util.Set original)

addSet

public void addSet(java.util.Set set)

removeSet

public boolean removeSet(java.util.Set set)

getModifiable

public java.util.Set getModifiable()

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

contains

public boolean contains(java.lang.Object o)
Specified by:
contains in interface java.util.Collection
Specified by:
contains in interface java.util.Set
Overrides:
contains in class java.util.AbstractCollection

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

add

public boolean add(java.lang.Object o)
Specified by:
add in interface java.util.Collection
Specified by:
add in interface java.util.Set
Overrides:
add in class java.util.AbstractCollection

remove

public boolean remove(java.lang.Object o)
Specified by:
remove in interface java.util.Collection
Specified by:
remove in interface java.util.Set
Overrides:
remove in class java.util.AbstractCollection