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>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddifference(TreeSet child) Removes each node from the parent list which is a child for both parent and child node.voidindexUnion(TreeSet[] base, TreeSet index) voidbooleanintersects(TreeSet ts) booleanCheck if ts is a subset of this set.voidMethods 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, tailSetMethods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
containsAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
CGDTreeSet
public CGDTreeSet()
-
-
Method Details
-
intersect
-
union
-
indexUnion
-
difference
Removes each node from the parent list which is a child for both parent and child node.- Parameters:
child-
-
isSubset
Check if ts is a subset of this set.- Parameters:
ts-- Returns:
-
intersects
-