protected static int getIntPropertyFromProperties(
			Properties propertiesParam,
			String propertyKeyParam
	) {
		String strProp = getStringPropertyFromProperties(
				propertiesParam, propertyKeyParam);

		if(strProp == null || strProp.trim().isEmpty()) {
			return -1;
		}

		try {
			return Integer.parseInt(strProp);
		} catch(NumberFormatException nfe) {
			return -1;
		}
	}
protected static int getIntPropertyFromProperties(
			Properties propertiesParam,
			String propertyKeyParam
	) {
		String strProp = getStringPropertyFromProperties(
				propertiesParam, propertyKeyParam);

		if(strProp == null || strProp.trim().isEmpty()) {
			return -1;
		}

		try {
			return Integer.parseInt(strProp);
		} catch(NumberFormatException nfe) {
			return -1;
		}
	}
protected static int getIntPropertyFromProperties ( Properties propertiesParam , String propertyKeyParam ) { String strProp = getStringPropertyFromProperties ( propertiesParam , propertyKeyParam ) ; if ( strProp == null || strProp . trim ( ) . isEmpty ( ) ) { return - 1 ; } try { return Integer . parseInt ( strProp ) ; } catch ( NumberFormatException nfe ) { return - 1 ; } }
Retrieves a property and returns the value as {@code int}.

@param propertiesParam The origin of the properties.
@param propertyKeyParam The property key.
@return The property value as an {@code int}.
Retrieves a property and returns the value as { @code int } .