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 booleanadd(Object o)voidaddSet(Set set)booleancontains(Object o)SetgetModifiable()Iteratoriterator()static MergingSetmerge(Set first, Set seccond)static MergingSetmodifiableMerge()static MergingSetmodifiableMerge(Set original)booleanremove(Object o)booleanremoveSet(Set set)intsize()-
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:
sizein interfaceCollection- Specified by:
sizein interfaceSet- Specified by:
sizein classAbstractCollection
-
contains
public boolean contains(Object o)
- Specified by:
containsin interfaceCollection- Specified by:
containsin interfaceSet- Overrides:
containsin classAbstractCollection
-
iterator
public Iterator iterator()
- Specified by:
iteratorin interfaceCollection- Specified by:
iteratorin interfaceIterable- Specified by:
iteratorin interfaceSet- Specified by:
iteratorin classAbstractCollection
-
add
public boolean add(Object o)
- Specified by:
addin interfaceCollection- Specified by:
addin interfaceSet- Overrides:
addin classAbstractCollection
-
remove
public boolean remove(Object o)
- Specified by:
removein interfaceCollection- Specified by:
removein interfaceSet- Overrides:
removein classAbstractCollection
-
-