gov.llnl.ontology.util
Class CombinedSet<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<T>
gov.llnl.ontology.util.CombinedSet<T>
- All Implemented Interfaces:
- Iterable<T>, Collection<T>, Set<T>
public class CombinedSet<T>
- extends AbstractSet<T>
A set that is composed of several sets. The original sets are unmodified,
even if there are duplicate entries in multiple sets.
- Author:
- Keith Stevens
Methods inherited from class java.util.AbstractCollection |
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString |
CombinedSet
public CombinedSet(Set<T>... sets)
- Creates a
CombinedSet
from all of the provided Set
s.
CombinedSet
public CombinedSet(Collection<Set<T>> setCollection)
- Creates a
CombinedSet
from all of the provided Set
s.
iterator
public Iterator<T> iterator()
-
- Specified by:
iterator
in interface Iterable<T>
- Specified by:
iterator
in interface Collection<T>
- Specified by:
iterator
in interface Set<T>
- Specified by:
iterator
in class AbstractCollection<T>
size
public int size()
-
- Specified by:
size
in interface Collection<T>
- Specified by:
size
in interface Set<T>
- Specified by:
size
in class AbstractCollection<T>
Copyright © 2010-2011. All Rights Reserved.