Package htsjdk.samtools.util
Class IntervalTreeMap<T>
Utility class that implements an interval map.
This class functions as a java map but also supports efficient interval overlap queries.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
Test if this contains an object that is contained by 'key'boolean
containsKey
(Interval key) boolean
containsKey
(Object object) boolean
Test overlapping intervaldebugGetTree
(String sequence) entrySet()
boolean
getContained
(Locatable key) getOverlapping
(Locatable key) int
hashCode()
boolean
isEmpty()
int
size()
Methods inherited from class java.util.AbstractMap
clone, containsValue, keySet, putAll, toString, values
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
IntervalTreeMap
public IntervalTreeMap() -
IntervalTreeMap
-
-
Method Details
-
debugGetTree
-
clear
public void clear() -
containsKey
- Specified by:
containsKey
in interfaceMap<Interval,
T> - Overrides:
containsKey
in classAbstractMap<Interval,
T>
-
containsKey
-
entrySet
-
equals
-
hashCode
public int hashCode() -
get
-
get
-
isEmpty
public boolean isEmpty() -
put
-
remove
-
remove
-
size
public int size() -
containsOverlapping
Test overlapping interval- Parameters:
key
- the Locatable- Returns:
- true if it contains an object overlapping the interval
-
getOverlapping
-
containsContained
Test if this contains an object that is contained by 'key'- Parameters:
key
- the Locatable- Returns:
- true if it contains an object is contained by 'key'
-
getContained
-