Class CGDTreeSet<I extends Number>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.TreeSet<I>
-
- repast.simphony.visualization.cgd.util.CGDTreeSet<I>
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<I>
,Collection<I>
,NavigableSet<I>
,Set<I>
,SortedSet<I>
public class CGDTreeSet<I extends Number> extends TreeSet<I>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CGDTreeSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
difference(TreeSet child)
Removes each node from the parent list which is a child for both parent and child node.void
indexUnion(TreeSet[] base, TreeSet index)
void
intersect(TreeSet b)
boolean
intersects(TreeSet ts)
boolean
isSubset(TreeSet ts)
Check if ts is a subset of this set.void
union(TreeSet child)
-
Methods inherited from class java.util.TreeSet
add, addAll, ceiling, clear, clone, comparator, contains, descendingIterator, descendingSet, first, floor, headSet, headSet, higher, isEmpty, iterator, last, lower, pollFirst, pollLast, remove, size, spliterator, subSet, subSet, tailSet, tailSet
-
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
-
Methods inherited from class java.util.AbstractCollection
containsAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Method Detail
-
intersect
public void intersect(TreeSet b)
-
union
public void union(TreeSet child)
-
difference
public void difference(TreeSet child)
Removes each node from the parent list which is a child for both parent and child node.- Parameters:
child
-
-
isSubset
public boolean isSubset(TreeSet ts)
Check if ts is a subset of this set.- Parameters:
ts
-- Returns:
-
intersects
public boolean intersects(TreeSet ts)
-
-