htsjdk.samtools.util
Class Histogram.Bin

java.lang.Object
  extended by htsjdk.samtools.util.Histogram.Bin
Enclosing class:
Histogram<K extends java.lang.Comparable>

public class Histogram.Bin
extends java.lang.Object

Represents a bin in the Histogram.


Method Summary
 boolean equals(java.lang.Object o)
          Checks the equality of the bin by ID and value.
 K getId()
          Gets the ID of this bin.
 double getIdValue()
           
 double getValue()
          Gets the value in the bin.
 int hashCode()
           
 java.lang.String toString()
          Returns the String format for the value in the bin.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getId

public K getId()
Gets the ID of this bin.


getValue

public double getValue()
Gets the value in the bin.


toString

public java.lang.String toString()
Returns the String format for the value in the bin.

Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Checks the equality of the bin by ID and value.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getIdValue

public double getIdValue()