void setBalance ( int b ) { if ( ( b == - 1 ) || ( b == 0 ) || ( b == 1 ) ) _balance = ( short ) b ; else { String x = "Attempt to set invalid balance factor: " + b ; throw new IllegalArgumentException ( x ) ; } }
Set the node s balance factor to a new value .