code: private static int parseVCalInt(String value) {
  		int negate = 1;
  		if (value.endsWith("+")) {
  			value = value.substring(0, value.length() - 1);
  		} else if (value.endsWith("-")) {
  			value = value.substring(0, value.length() - 1);
  			negate = -1;
  		}
  
  		return Integer.parseInt(value) * negate;
  	}
docs: Parses an integer string, where the sign is at the end of the string
  instead of at the beginning (for example, "5-").
  @param value the string
  @return the value
  @throws NumberFormatException if the string cannot be parsed as an
  integer