19 package org.turro.contacts.duplicates;
21 import java.util.Collection;
23 import java.util.TreeSet;
24 import org.turro.util.Comparison;
30 public class Duplicated implements Comparable<Duplicated> {
35 private final String title, value;
36 private final Set<String> contacts =
new TreeSet<>();
38 private String consequence;
47 this.consequence = consequence;
51 this.contacts.addAll(contacts);
60 case STOPPER ->
"hand paper red";
61 case WARNING ->
"exclamation triangle orange";
62 case SAFE ->
"copy outline teal";
84 return Comparison.ascendant()
85 .compare(type, o.type)
86 .compare(title, o.title)
87 .compare(value, o.value)