mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
Changed the root package from net.sf.briar to org.briarproject.
This commit is contained in:
22
briar-api/src/org/briarproject/api/messaging/GroupId.java
Normal file
22
briar-api/src/org/briarproject/api/messaging/GroupId.java
Normal file
@@ -0,0 +1,22 @@
|
||||
package org.briarproject.api.messaging;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import org.briarproject.api.UniqueId;
|
||||
|
||||
/**
|
||||
* Type-safe wrapper for a byte array that uniquely identifies a {@link Group}.
|
||||
*/
|
||||
public class GroupId extends UniqueId {
|
||||
|
||||
public GroupId(byte[] id) {
|
||||
super(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if(o instanceof GroupId)
|
||||
return Arrays.equals(id, ((GroupId) o).id);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user