IToken assumes that the type of it's source (T) matches the type of it's value; this is not the case.
You could easily imagine a scenario here: Parser parses InputStreams, gives StringBuilder buffer to Tokens who return char[] to callers.
IToken assumes that the type of it's source (T) matches the type of it's value; this is not the case.
You could easily imagine a scenario here:
Parser parses InputStreams, gives StringBuilder buffer to Tokens who return char[] to callers.