class BinaryTreeLeaf extends BinaryTreeNode
Modifier and Type | Field and Description |
---|---|
private long |
end
Ende des Intervalls
|
private long |
start
Start des Intervalls
|
Constructor and Description |
---|
BinaryTreeLeaf(Tuple<java.lang.Long,java.lang.Long> period)
Erzeugt ein Blatt, das ein Zeitintervall speichert.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(long timeStamp)
Prüft, ob ein Zeitstempel in den gespeicherten Intervallen liegt.
|
long |
getMaxTimeStamp()
Liefert den größten Zeitstempel zurück, der in diesem Knoten gespeichert ist.
|
java.lang.String |
toString() |
createTree
public BinaryTreeLeaf(Tuple<java.lang.Long,java.lang.Long> period)
period
- Zeitintervallpublic boolean contains(long timeStamp)
BinaryTreeNode
contains
in class BinaryTreeNode
timeStamp
- Zeitstempel.true
, falls der Zeitstempel innerhalb der gespeicherten Zeitintervalle liegt. false
sonst.BinaryTreeNode.contains(long)
public long getMaxTimeStamp()
BinaryTreeNode
getMaxTimeStamp
in class BinaryTreeNode
BinaryTreeNode.getMaxTimeStamp()
public java.lang.String toString()
toString
in class BinaryTreeNode
Object.toString()