private void increaseBeliefCount ( String bName ) { Object belief = this . getBelief ( bName ) ; int count = 0 ; if ( belief != null ) { count = ( Integer ) belief ; } this . setBelief ( bName , count + 1 ) ; }
If the belief its a count of some sort his counting its increased by one .