mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
22 lines
382 B
Java
22 lines
382 B
Java
package org.briarproject.api;
|
|
|
|
import java.util.Arrays;
|
|
|
|
/**
|
|
* Type-safe wrapper for a byte array that uniquely identifies an
|
|
* {@link Author}.
|
|
*/
|
|
public class AuthorId extends UniqueId {
|
|
|
|
public AuthorId(byte[] id) {
|
|
super(id);
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if(o instanceof AuthorId)
|
|
return Arrays.equals(id, ((AuthorId) o).id);
|
|
return false;
|
|
}
|
|
}
|