On 6/12/07, Mike Heath <[EMAIL PROTECTED]> wrote:
On 6/10/07, Trustin Lee <[EMAIL PROTECTED]> wrote:
> Additionally, the following features might make ByteBuffer more useful:
>
> * Provide getEnum and putEnum too.  (just reading and writing the
> ordinal value itself)
> * Throw an IllegalArgumentException if there are too many enum
> members.  For example, when a user calls putEnumSet with an enum class
> which has 10 (>8) members, we need to throw an exception to tell the
> user that a wrong value can be written.

I made these changes and committed them to trunk.

Thanks, Mike.  It looks great!  I added a few more methods for random
access (via an index parameter).

Cheers,
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Reply via email to