mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
25 lines
536 B
Java
25 lines
536 B
Java
package org.briarproject.api.clients;
|
|
|
|
import org.briarproject.api.sync.MessageId;
|
|
|
|
import java.util.Collection;
|
|
import java.util.Comparator;
|
|
|
|
public interface MessageTree<T extends MessageTree.MessageNode> {
|
|
|
|
void add(Collection<T> nodes);
|
|
void add(T node);
|
|
void setComparator(Comparator<T> comparator);
|
|
void clear();
|
|
Collection<T> depthFirstOrder();
|
|
|
|
interface MessageNode {
|
|
MessageId getId();
|
|
MessageId getParentId();
|
|
void setLevel(int level);
|
|
void setDescendantCount(int descendantCount);
|
|
long getTimestamp();
|
|
}
|
|
|
|
}
|