public static int getIntFromString(String input) {
        int retVal = 0;

        Integer n = getIntegerFromString(input);
        if (n != null)
            retVal = n.intValue();
        else if (input != null)
            retVal = input.hashCode();

        return retVal;
    }