public int weightOf ( String suggestion ) { Node n = getNode ( suggestion ) ; return ( n != null ) ? n . weight : - 1 ; }
Returns the weight of the specified suggestion in this tree or - 1 if the tree does not contain the suggestion .