public int getMaximalFrequency ( ) { int maxfreq = 0 ; for ( Map . Entry < T , Integer > entry : styles . entrySet ( ) ) { if ( entry . getValue ( ) > maxfreq ) maxfreq = entry . getValue ( ) ; } return maxfreq ; }
Gets the number of the most frequent entry .