Class RangeEntry<C extends Comparable,V>
java.lang.Object
org.dishevelled.bio.range.entrytree.RangeEntry<C,V>
- Type Parameters:
C- range endpoint typeV- value type
- All Implemented Interfaces:
RangeTree.Entry<C,V>
@Immutable
public final class RangeEntry<C extends Comparable,V>
extends Object
implements RangeTree.Entry<C,V>
Implementation of RangeTree.Entry.
- Author:
- Michael Heuer
-
Constructor Summary
ConstructorsConstructorDescriptionRangeEntry(com.google.common.collect.Range<C> range, V value) Create a new range entry with the specified range and value. -
Method Summary
-
Constructor Details
-
RangeEntry
Create a new range entry with the specified range and value.- Parameters:
range- range for this range entry, must not be nullvalue- value for this range entry
-
-
Method Details
-
getRange
Description copied from interface:RangeTree.EntryReturn the range for this range tree entry.- Specified by:
getRangein interfaceRangeTree.Entry<C extends Comparable,V> - Returns:
- the range for this range tree entry
-
getValue
Description copied from interface:RangeTree.EntryReturn the value for this range tree entry.- Specified by:
getValuein interfaceRangeTree.Entry<C extends Comparable,V> - Returns:
- the value for this range tree entry
-
hashCode
public int hashCode() -
equals
-