private static int encodeValueNum(int valueNum,boolean isObjectKind){
  assert valueNum > 0;
  if (isObjectKind) {
    return -valueNum;
  }
  return valueNum;
}

private static int encodeValueNum ( int valueNum , boolean isObjectKind ) { assert valueNum > 0 ; if ( isObjectKind ) { return - valueNum ; } return valueNum ; }
encodes a value number + the is - object information to a number to be stored in a state .
