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:
@@ -61,6 +61,15 @@ public class AttributeChangedEvent extends NamedEvent
|
|||||||
return _oldValue;
|
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
|
* Returns the new value of the attribute as a short. This will fail
|
||||||
* if the attribute in question is not a short.
|
* if the attribute in question is not a short.
|
||||||
|
|||||||
Reference in New Issue
Block a user