public static DelimitedStringParser parser(String pairDelimiter, String keyValueDelimiter) {
        Exceptions.checkNotNullOrEmpty(pairDelimiter, "pairDelimiter");
        Exceptions.checkNotNullOrEmpty(keyValueDelimiter, "keyValueDelimiter");
        Preconditions.checkArgument(!pairDelimiter.equals(keyValueDelimiter),
                "pairDelimiter (%s) cannot be the same as keyValueDelimiter (%s)", pairDelimiter, keyValueDelimiter);
        return new DelimitedStringParser(pairDelimiter, keyValueDelimiter);
    }
public static DelimitedStringParser parser ( String pairDelimiter , String keyValueDelimiter ) { Exceptions . checkNotNullOrEmpty ( pairDelimiter , "pairDelimiter" ) ; Exceptions . checkNotNullOrEmpty ( keyValueDelimiter , "keyValueDelimiter" ) ; Preconditions . checkArgument ( ! pairDelimiter . equals ( keyValueDelimiter ) , "pairDelimiter (%s) cannot be the same as keyValueDelimiter (%s)" , pairDelimiter , keyValueDelimiter ) ; return new DelimitedStringParser ( pairDelimiter , keyValueDelimiter ) ; }
Creates a new DelimitedStringParser with the given Pair and KeyValue delimiters.

@param pairDelimiter     A String that will be used to delimit pairs.
@param keyValueDelimiter A String that will be used to delimit Keys from Values (inside a pair).
@return A new instance of the DelimitedStringParser class.