/** * Method toString. * * @return String */ public java.lang.String toString() { StringBuilder buf = new StringBuilder( 128 ); buf.append( "description = '" ); buf.append( getDescription() ); buf.append( "'" ); buf.append( "\n" ); buf.append( "collapse = '" ); buf.append( isCollapse() ); buf.append( "'" ); buf.append( "\n" ); buf.append( "ref = '" ); buf.append( getRef() ); buf.append( "'" ); buf.append( "\n" ); buf.append( "items = '" ); buf.append( getItems() ); buf.append( "'" ); buf.append( "\n" ); buf.append( super.toString() ); return buf.toString(); } //-- java.lang.String toString()
/** * Method equals. * * @param other * @return boolean */ public boolean equals( Object other ) { if ( this == other ) { return true; } if ( !( other instanceof MenuItem ) ) { return false; } MenuItem that = (MenuItem) other; boolean result = true; result = result && ( getDescription() == null ? that.getDescription() == null : getDescription().equals( that.getDescription() ) ); result = result && collapse == that.collapse; result = result && ( getRef() == null ? that.getRef() == null : getRef().equals( that.getRef() ) ); result = result && ( getItems() == null ? that.getItems() == null : getItems().equals( that.getItems() ) ); result = result && ( super.equals( other ) ); return result; } //-- boolean equals( Object )