"Michael McCandless" wrote: > boolean next(Token resToken) > > which returns true if it has updated resToken with another token, > else false if end-of-stream was hit.
I would actually prefer Token next(Token resToken) because: - this was the API with reuse is very much like the one without reuse (except for the reusable param) - easier for app dev. - it allows to return useful result also in cases where the specific implementation does not support reuse, or null was passed (indicating reuse is not desired), or something in the data/state inhibited reuse. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]