org.scalacheck.util

trait FreqMap

[source: org/scalacheck/util/FreqMap.scala]

trait FreqMap[T]
extends AnyRef
Value Summary
abstract val total : Int
protected abstract val underlying : scala.collection.immutable.Map[T, Int]
Method Summary
def + (t : T) : FreqMap[T]
def ++ (fm : FreqMap[T]) : FreqMap[T]
def - (t : T) : FreqMap[T]
def -- (fm : FreqMap[T]) : FreqMap[T]
def getCount (t : T) : scala.Option[Int]
def getCounts : scala.List[(T, Int)]
def getRatio (t : T) : scala.Option[Float]
def getRatios : scala.List[(T, Float)]
override def toString : java.lang.String
Returns a string representation of the object.
Methods inherited from AnyRef
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Value Details
protected abstract val underlying : scala.collection.immutable.Map[T, Int]

abstract val total : Int

Method Details
def +(t : T) : FreqMap[T]

def -(t : T) : FreqMap[T]

def ++(fm : FreqMap[T]) : FreqMap[T]

def --(fm : FreqMap[T]) : FreqMap[T]

def getCount(t : T) : scala.Option[Int]

def getCounts : scala.List[(T, Int)]

def getRatio(t : T) : scala.Option[Float]

def getRatios : scala.List[(T, Float)]

override def toString : java.lang.String
Returns a string representation of the object.

The default representation is platform dependent.

Returns
a string representation of the object.