mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
13 lines
286 B
Java
13 lines
286 B
Java
package org.briarproject.api;
|
|
|
|
public abstract class UniqueId extends Bytes {
|
|
|
|
/** The length of a unique identifier in bytes. */
|
|
public static final int LENGTH = 32;
|
|
|
|
protected UniqueId(byte[] id) {
|
|
super(id);
|
|
if (id.length != LENGTH) throw new IllegalArgumentException();
|
|
}
|
|
}
|