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,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleanTest if this contains an object that is contained by 'key'booleancontainsKey(Interval key) booleancontainsKey(Object object) booleanTest overlapping intervaldebugGetTree(String sequence) entrySet()booleangetContained(Locatable key) getOverlapping(Locatable key) inthashCode()booleanisEmpty()intsize()Methods inherited from class java.util.AbstractMap
clone, containsValue, keySet, putAll, toString, valuesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
containsKeyin interfaceMap<Interval,T> - Overrides:
containsKeyin 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
-