com.quadrique.jbuildingblocks.core.dataStructure
Class JbbHistogramBucket<V>

java.lang.Object
  extended by com.quadrique.jbuildingblocks.core.dataStructure.JbbHistogramBucket<V>

public class JbbHistogramBucket<V>
extends Object

A simple data structure that represents a bucket in a histogram: a bucket is a value and the corresponding number of occurences


Constructor Summary
JbbHistogramBucket()
           
 
Method Summary
 long getNbOfOccurences()
           
 V getValue()
           
 void setNbOfOccurences(long nbOfOccurences)
           
 void setValue(V value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JbbHistogramBucket

public JbbHistogramBucket()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getNbOfOccurences

public long getNbOfOccurences()
Returns:
Returns the nbOfOccurences.

setNbOfOccurences

public void setNbOfOccurences(long nbOfOccurences)
Parameters:
nbOfOccurences - The nbOfOccurences to set.

getValue

public V getValue()
Returns:
Returns the value.

setValue

public void setValue(V value)
Parameters:
value - The value to set.


Copyright © 2001-2008 Quadrique Corporation. All Rights Reserved.