All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.coinbase.api.deserializer.ErrorsCollector Maven / Gradle / Ivy

There is a newer version: 1.10.0
Show newest version
package com.coinbase.api.deserializer;

import java.util.List;
import java.util.ListIterator;

import com.fasterxml.jackson.databind.util.StdConverter;

public class ErrorsCollector extends StdConverter, String> {

    public String convert(List errors) {
	StringBuilder sb = new StringBuilder();
	ListIterator it = errors.listIterator();
	
	while (it.hasNext()) {
	    sb.append(it.next());
	    if (it.hasNext()) {
		sb.append(", ");
	    }
	}
	
	return sb.toString();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy