1package eu.siacs.conversations.entities;
2
3import java.util.List;
4
5import eu.siacs.conversations.xmpp.jid.Jid;
6
7public interface ListItem extends Comparable<ListItem> {
8 String getDisplayName();
9
10 String getDisplayJid();
11
12 Jid getJid();
13
14 List<Tag> getTags();
15
16 final class Tag {
17 private final String name;
18 private final int color;
19
20 public Tag(final String name, final int color) {
21 this.name = name;
22 this.color = color;
23 }
24
25 public int getColor() {
26 return this.color;
27 }
28
29 public String getName() {
30 return this.name;
31 }
32 }
33
34 boolean match(final String needle);
35}