river-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sim IJskes - QCG <...@qcg.nl>
Subject Re: MarshalledServiceItem
Date Mon, 07 Feb 2011 11:54:21 GMT
On 07-02-11 11:56, Peter Firmstone wrote:
> @Override
> public String toString(){
> String newline = System.getProperty("line.separator");
> StringBuilder sb = new StringBuilder(256);
> sb.append("DefaultEntries:");
> sb.append(newline);
> Iterator<Class> it = entrys.iterator();
> while (it.hasNext()){
> sb.append(it.next().getName());
> sb.append(newline);
> }
> return sb.toString();
> }

Can we have the toString fitting in 1 line, ex [a,b,c] prefixed with 
Class.getSimpleName()?

Gr. Sim


Mime
View raw message