/** * Retrieve the correct OtherwiseBuilder for the given column * * @param c * @return */ public static OtherwiseBuilder getBuilder(ConditionCol52 c) { if ( c.getOperator().equals( "==" ) ) { return new EqualsOtherwiseBuilder(); } else if ( c.getOperator().equals( "!=" ) ) { return new NotEqualsOtherwiseBuilder(); } throw new IllegalArgumentException( "ConditionCol operator does not support Otherwise values" ); }
/** * Retrieve the correct OtherwiseBuilder for the given column * * @param c * @return */ public static OtherwiseBuilder getBuilder(ConditionCol52 c) { if ( c.getOperator().equals( "==" ) ) { return new EqualsOtherwiseBuilder(); } else if ( c.getOperator().equals( "!=" ) ) { return new NotEqualsOtherwiseBuilder(); } throw new IllegalArgumentException( "ConditionCol operator does not support Otherwise values" ); }