- for (Contact contact : card.getContactsList()) {
- builder.append(toString(contact, -1));
+ /**
+ * Return a {@link String} representation of the given {@link Card}, line by
+ * line.
+ *
+ * @param card
+ * the card to convert
+ *
+ * @return the {@link String} representation
+ */
+ public static List<String> toStrings(Card card) {
+ List<String> lines = new LinkedList<String>();
+
+ for (int index = 0; index < card.size(); index++) {
+ lines.addAll(toStrings(card.get(index), -1));