collect

fun collect(states: Array<State>)

Parameters

states

an array of states to collect on, must not be null


fun collect(states: List<State>)

Parameters

states

a list of states to collect on, must not be null


fun collect(state: State)

Tabulate statistics on the state occurrences

Parameters

state

if state is not one of the states created by this StateFrequency then it is not tabulated (i.e. it is ignored)