Conversations/src/main/java/eu/siacs/conversations/entities/ListItem.java

34 lines
594 B
Java
Raw Normal View History

2014-10-22 12:38:44 -04:00
package eu.siacs.conversations.entities;
2014-11-16 11:21:21 -05:00
import java.util.List;
import eu.siacs.conversations.xmpp.jid.Jid;
2014-10-22 12:38:44 -04:00
public interface ListItem extends Comparable<ListItem> {
public String getDisplayName();
public Jid getJid();
2014-11-16 11:21:21 -05:00
public List<Tag> getTags();
public final class Tag {
private final String name;
private final int color;
2014-11-16 11:21:21 -05:00
public Tag(final String name, final int color) {
2014-11-16 11:21:21 -05:00
this.name = name;
this.color = color;
}
public int getColor() {
return this.color;
}
public String getName() {
return this.name;
}
}
public boolean match(final String needle);
2014-10-22 12:38:44 -04:00
}