AllCharFrequencyCounter class

Facilitates performing all_char_frequency on a stream of strings.

Constructors

AllCharFrequencyCounter()
AllCharFrequencyCounter.fromString(String str)
Creates a counter and adds parameter string.

Properties

counts Map<String, int>
Counts of each character encountered thus far.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(String str, {bool filterNonChars = true}) Map<String, int>
Add another string to be processed, returns the counts collection. filterNonChars removes non-chars from count.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited