Package org.biojava.utils
Class MergingSet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet
-
- org.biojava.utils.MergingSet
-
- All Implemented Interfaces:
Iterable
,Collection
,Set
public class MergingSet extends AbstractSet
- Author:
- Matthew Pocock
-
-
Constructor Summary
Constructors Constructor Description MergingSet()
MergingSet(Set sets)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(Object o)
void
addSet(Set set)
boolean
contains(Object o)
Set
getModifiable()
Iterator
iterator()
static MergingSet
merge(Set first, Set seccond)
static MergingSet
modifiableMerge()
static MergingSet
modifiableMerge(Set original)
boolean
remove(Object o)
boolean
removeSet(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.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.Set
addAll, clear, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
-
-
-
-
Constructor Detail
-
MergingSet
public MergingSet()
-
MergingSet
public MergingSet(Set sets)
-
-
Method Detail
-
merge
public static MergingSet merge(Set first, Set seccond)
-
modifiableMerge
public static MergingSet modifiableMerge()
-
modifiableMerge
public static MergingSet modifiableMerge(Set original)
-
getModifiable
public Set getModifiable()
-
size
public int size()
- Specified by:
size
in interfaceCollection
- Specified by:
size
in interfaceSet
- Specified by:
size
in classAbstractCollection
-
contains
public boolean contains(Object o)
- Specified by:
contains
in interfaceCollection
- Specified by:
contains
in interfaceSet
- Overrides:
contains
in classAbstractCollection
-
iterator
public Iterator iterator()
- Specified by:
iterator
in interfaceCollection
- Specified by:
iterator
in interfaceIterable
- Specified by:
iterator
in interfaceSet
- Specified by:
iterator
in classAbstractCollection
-
add
public boolean add(Object o)
- Specified by:
add
in interfaceCollection
- Specified by:
add
in interfaceSet
- Overrides:
add
in classAbstractCollection
-
remove
public boolean remove(Object o)
- Specified by:
remove
in interfaceCollection
- Specified by:
remove
in interfaceSet
- Overrides:
remove
in classAbstractCollection
-
-