Class RangeEntry<C extends Comparable,V>

java.lang.Object
org.dishevelled.bio.range.entrytree.RangeEntry<C,V>
Type Parameters:
C - range endpoint type
V - 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

    Constructors
    Constructor
    Description
    RangeEntry(com.google.common.collect.Range<C> range, V value)
    Create a new range entry with the specified range and value.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    com.google.common.collect.Range<C>
    Return the range for this range tree entry.
    Return the value for this range tree entry.
    int
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RangeEntry

      public RangeEntry(com.google.common.collect.Range<C> range, V value)
      Create a new range entry with the specified range and value.
      Parameters:
      range - range for this range entry, must not be null
      value - value for this range entry
  • Method Details

    • getRange

      public com.google.common.collect.Range<C> getRange()
      Description copied from interface: RangeTree.Entry
      Return the range for this range tree entry.
      Specified by:
      getRange in interface RangeTree.Entry<C extends Comparable,V>
      Returns:
      the range for this range tree entry
    • getValue

      public V getValue()
      Description copied from interface: RangeTree.Entry
      Return the value for this range tree entry.
      Specified by:
      getValue in interface RangeTree.Entry<C extends Comparable,V>
      Returns:
      the value for this range tree entry
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object