jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller" <thomas.tom.muel...@gmail.com>
Subject Re: lack of toString?
Date Mon, 14 Apr 2008 08:37:01 GMT

>  I think the risk Dave was mentioning was that if, for instance, toString()
> returns the same thing as getString() (on Value), then people - by mistake -
> my call the incorrect method, thus making code non-portable.

This risk could be mitigated by returning a prefix (for example the
class name) and the value (except for binaries of course):

public String toString() {
    return getClass().getName() + ":" + lNumber;


View raw message