Add a new value accessor for byte values.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4504 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Mike Thomas
2007-01-16 21:43:42 +00:00
parent eebb818c82
commit 5640073272
@@ -61,6 +61,15 @@ public class AttributeChangedEvent extends NamedEvent
return _oldValue;
}
/**
* Returns the new value of the attribute as a byte. This will fail
* if the attribute in question is not a byte.
*/
public byte getByteValue ()
{
return ((Byte)_value).byteValue();
}
/**
* Returns the new value of the attribute as a short. This will fail
* if the attribute in question is not a short.