public static Organization clone( Organization organization ) { if ( organization == null ) { return null; } Organization cloned = new Organization(); cloned.setFavicon( organization.getFavicon() ); cloned.setName( organization.getName() ); cloned.setUrl( organization.getUrl() ); return cloned; }
/** * Method equals * * @param other */ public boolean equals(Object other) { if ( this == other) { return true; } if ( !(other instanceof Organization) ) { return false; } Organization that = (Organization) other; boolean result = true; result = result && ( getName() == null ? that.getName() == null : getName().equals( that.getName() ) ); return result; } //-- boolean equals(Object)
/** * Method toString */ public java.lang.String toString() { StringBuffer buf = new StringBuffer(); buf.append( "name = '" ); buf.append( getName() + "'" ); return buf.toString(); } //-- java.lang.String toString()