public void addEnding ( int endingId ) { int count = 1 ; if ( endingFrequency . get ( endingId ) != null ) count = endingFrequency . get ( endingId ) + 1 ; endingFrequency . put ( endingId , count ) ; }
Add one occurrence of one ending .