com.coinbase.api.deserializer.ErrorsCollector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of coinbase-java Show documentation
Show all versions of coinbase-java Show documentation
A first-party java wrapper around the Coinbase API
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