private static int getInteger(final String str) {
		if (str == null || str.trim().length() == 0) {
			return 0;
		} else {
			return Integer.parseInt(str);
		}
	}
private static int getInteger(final String str) {
		if (str == null || str.trim().length() == 0) {
			return 0;
		} else {
			return Integer.parseInt(str);
		}
	}
private static int getInteger ( final String str ) { if ( str == null || str . trim ( ) . length ( ) == 0 ) { return 0 ; } else { return Integer . parseInt ( str ) ; } }
Gets the integer.

@param str
the str
@return the integer
Gets the integer .