mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
32 lines
754 B
Java
32 lines
754 B
Java
package org.briarproject.api.privategroup;
|
|
|
|
import org.briarproject.api.clients.NamedGroup;
|
|
import org.briarproject.api.identity.Author;
|
|
import org.briarproject.api.nullsafety.NotNullByDefault;
|
|
import org.briarproject.api.sharing.Shareable;
|
|
import org.briarproject.api.sync.Group;
|
|
|
|
import javax.annotation.concurrent.Immutable;
|
|
|
|
@Immutable
|
|
@NotNullByDefault
|
|
public class PrivateGroup extends NamedGroup implements Shareable {
|
|
|
|
private final Author creator;
|
|
|
|
public PrivateGroup(Group group, String name, Author creator, byte[] salt) {
|
|
super(group, name, salt);
|
|
this.creator = creator;
|
|
}
|
|
|
|
public Author getCreator() {
|
|
return creator;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
return o instanceof PrivateGroup && super.equals(o);
|
|
}
|
|
|
|
}
|