Get byte values from abstract id

This commit is contained in:
Jeremy Lakeman 2016-07-25 15:40:06 +09:30
parent 51947dc6cb
commit baa50aaadb

View File

@ -45,6 +45,11 @@ public abstract class AbstractId {
private final byte[] binary;
public byte[] getBinary(){
//TODO always copy bytes so they can't be tampered with?
return binary;
}
public AbstractId(String hex) throws InvalidHexException {
if (hex==null)
throw new InvalidHexException(this, "null is not a invalid hex value");