net.obsearch.utils
Class MultiSet<O>

java.lang.Object
  extended by net.obsearch.utils.MultiSet<O>

public class MultiSet<O>
extends Object


Constructor Summary
MultiSet(int count)
           
 
Method Summary
 void add(O object)
          Add the given object to the multiset.
 int cardinality(O object)
          Return the cardinality for the given object.
 boolean containsKey(Object key)
           
 Set<Map.Entry<O,IntegerHolder>> entrySet()
           
 hep.aida.bin.StaticBin1D getDistribution()
          Return the statistical summary of the multi-set
 boolean isEmpty()
           
 Set<O> keySet()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiSet

public MultiSet(int count)
Method Detail

add

public void add(O object)
Add the given object to the multiset.

Parameters:
object -

cardinality

public int cardinality(O object)
Return the cardinality for the given object.

Parameters:
object -
Returns:

containsKey

public boolean containsKey(Object key)

entrySet

public Set<Map.Entry<O,IntegerHolder>> entrySet()

isEmpty

public boolean isEmpty()

keySet

public Set<O> keySet()

getDistribution

public hep.aida.bin.StaticBin1D getDistribution()
Return the statistical summary of the multi-set

Returns:


Copyright © 2007-2011 Arnoldo Jose Muller Molina. All Rights Reserved.