src/main/java/wniemiec/util/java/CurlyBracketBalance.java
@Override
	public CurlyBracketBalance parse(String text) {
		String textWithoutString = removeStrings(text);
		
		int amountOpenCurlyBrackets = countOpenCurlyBrackets(textWithoutString);
		int amountClosedCurlyBrackets = countClosedCurlyBrackets(textWithoutString);
		
		currentBalance += amountOpenCurlyBrackets - amountClosedCurlyBrackets;
		alreadyIncreased = alreadyIncreased ? alreadyIncreased : amountOpenCurlyBrackets > 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
@Override
	public CurlyBracketBalance parse(String text) {
		String textWithoutString = removeStrings(text);
		int amountOpenCurlyBrackets = countOpenCurlyBrackets(textWithoutString);
		int amountClosedCurlyBrackets = countClosedCurlyBrackets(textWithoutString);
		currentBalance += amountOpenCurlyBrackets - amountClosedCurlyBrackets;
		alreadyIncreased = alreadyIncreased ? alreadyIncreased : amountOpenCurlyBrackets > 0;
		return this;
	}
@ Override public CurlyBracketBalance parse ( String text ) { String textWithoutString = removeStrings ( text ) ; int amountOpenCurlyBrackets = countOpenCurlyBrackets ( textWithoutString ) ; int amountClosedCurlyBrackets = countClosedCurlyBrackets ( textWithoutString ) ; currentBalance += amountOpenCurlyBrackets - amountClosedCurlyBrackets ; alreadyIncreased = alreadyIncreased ? alreadyIncreased : amountOpenCurlyBrackets > 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 >