Package org.proforma.variability.util
Class VOrRangeTree
- java.lang.Object
-
- org.proforma.variability.util.VOrRangeTree
-
public class VOrRangeTree extends Object implements Iterable<VOrRange>
This tree stores
VOrRange
instances such that duplicates are eliminated as good as possible. E. g. the following two ranges would be concatenated to a single range: { 2, 4, 6, 8, 10 } and { 6, 8, 10, 12, 14, 16 } will be joined to { 2, 4, 6, 8, 10, 12, 14, 16 }. Another example: the range { 4, 7, 10, 13 } and the value 1 will be joined to { 1, 4, 7, 10, 13 }.Elements of the tree can be queried by specifying a
Vis
query interval.
-
-
Constructor Summary
Constructors Constructor Description VOrRangeTree(Vp vp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addElement(VOrRange subject)
boolean
contains(VOrRange query)
boolean
equals(Object obj)
Vp
getVp()
int
hashCode()
boolean
isEmpty()
Iterator<VOrRange>
iterator()
String
toString()
String
toString(String prefix)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
VOrRangeTree
public VOrRangeTree(Vp vp)
- Parameters:
vp
- if null, then nothing can be added to this tree.
-
-