src/main/java/wniemiec/util/java/RoundBracketBalance.java
public RoundBracketBalance parse(String text)
	{
		String textWithoutString = removeStrings(text);
		
		int amountOpenRoundBrackets = countOpenRoundBrackets(textWithoutString);
		int amountClosedRoundBrackets = countClosedRoundBrackets(textWithoutString);
	
		currentBalance += amountOpenRoundBrackets - amountClosedRoundBrackets;
		alreadyIncreased = alreadyIncreased ? alreadyIncreased : amountOpenRoundBrackets > 0;
		
		return this;
	}
/**
	 * Parses line by counting the number of curly brackets and performing the
	 * following calculation: 
	 * <code>Current balance - Amount of open curly brackets - Amount of closed curly brackets</code>
	 * 
	 * @param		text Text to be parsed
	 * 
	 * @return		This object to allows chained calls
	 */
Parses line by counting the number of curly brackets and performing the
following calculation:
Current balance - Amount of open curly brackets - Amount of closed curly brackets

@param               text Text to be parsed

@return              This object to allows chained calls
Parses line by counting the number of curly brackets and performing the following calculation : Current balance - Amount of open curly brackets - Amount of closed curly brackets @param text Text to be parsed @return This object to allows chained calls
public RoundBracketBalance parse(String text)
	{
		String textWithoutString = removeStrings(text);
		int amountOpenRoundBrackets = countOpenRoundBrackets(textWithoutString);
		int amountClosedRoundBrackets = countClosedRoundBrackets(textWithoutString);
		currentBalance += amountOpenRoundBrackets - amountClosedRoundBrackets;
		alreadyIncreased = alreadyIncreased ? alreadyIncreased : amountOpenRoundBrackets > 0;
		return this;
	}
public RoundBracketBalance parse ( String text ) { String textWithoutString = removeStrings ( text ) ; int amountOpenRoundBrackets = countOpenRoundBrackets ( textWithoutString ) ; int amountClosedRoundBrackets = countClosedRoundBrackets ( textWithoutString ) ; currentBalance += amountOpenRoundBrackets - amountClosedRoundBrackets ; alreadyIncreased = alreadyIncreased ? alreadyIncreased : amountOpenRoundBrackets > 0 ; return this ; }
Parses line by counting the number of curly brackets and performing the
 following calculation:
 <code>Current balance - Amount of open curly brackets - Amount of closed curly brackets</code>
Parses line by counting the number of curly brackets and performing the following calculation : <code > Current balance - Amount of open curly brackets - Amount of closed curly brackets< / code >