/** * Returns a string representation of the object. * * @return a string representation of the object. */ public String toString() { return super.toString() + this.internalString(); }
/** * Creates a string representing the properties of the instance. * * @return a string representing the properties of the instance. */ private String internalString() { final StringBuffer buf = new StringBuffer( 200 ).append( '{' ); buf.append( this.internalString( this ) ); final Dependency[] deps = this.getDependencies(); for ( int i = deps.length - 1; i >= 0; i-- ) { buf.append( ", [" ).append( i ).append( "]=" ). append( deps[i] ); } buf.append( '}' ); return buf.toString(); }