@@ -0,0 +1,2590 @@
+/*%0A * The Gemma project.%0A * %0A * Copyright (c) 2005 Columbia University%0A * %0A * This program is free software; you can redistribute it and/or%0A * modify it under the terms of the GNU General Public License%0A * as published by the Free Software Foundation; either version 2%0A * of the License, or (at your option) any later version.%0A *%0A * This program is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A * GNU General Public License for more details.%0A * %0A * You should have received a copy of the GNU General Public License%0A * along with this program; if not, write to the Free Software%0A * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.%0A *%0A */%0A%0Apackage edu.columbia.gemma.common;%0A%0Aimport org.apache.commons.lang.builder.HashCodeBuilder;%0Aimport org.apache.commons.lang.builder.ToStringBuilder;%0A%0A/**%0A * @see edu.columbia.gemma.common.Identifscribable%0A * @author pavlidis%0A * @version $Id$%0A */%0Apublic class IdentifscribableImpl extends edu.columbia.gemma.common.Identifscribable implements Comparable %7B%0A    /**%0A     * @see edu.columbia.gemma.common.Identifscribable#equals(java.lang.String)%0A     */%0A    public boolean equals( java.lang.String identifier ) %7B%0A        // @todo implement public boolean equals(java.lang.String identifier)%0A        return false;%0A    %7D%0A%0A    /**%0A     * @see java.lang.Comparable#compareTo(Object)%0A     */%0A    public int compareTo( Object o ) %7B%0A        if ( !( o instanceof Identifscribable ) ) return -1;%0A%0A        return ( ( Identifscribable ) o ).getIdentifier().compareTo( this.getIdentifier() );%0A    %7D%0A%0A    public int compareTo( String identifier ) %7B%0A        // TODO Auto-generated method stub%0A        return 0;%0A    %7D%0A%0A    /**%0A     * @see java.lang.Object#equals(Object)%0A     */%0A    public boolean equals( Object object ) %7B%0A        if ( !( object instanceof IdentifscribableImpl ) ) %7B%0A            return false;%0A        %7D%0A        Identifscribable rhs = ( Identifscribable ) object;%0A        return rhs.getIdentifier().equals( this.getIdentifier() );%0A    %7D%0A%0A    /**%0A     * @see java.lang.Object#hashCode()%0A     */%0A    public int hashCode() %7B%0A        return new HashCodeBuilder( -1867551415, -168940413 ).append( this.getIdentifier().hashCode() ).toHashCode();%0A    %7D%0A%0A    /**%0A     * @see java.lang.Object#toString()%0A     */%0A    public String toString() %7B%0A        return new ToStringBuilder( this ).append( %22name%22, this.getName() ).append( %22description%22,%0A                this.getDescription() ).toString();%0A    %7D%0A%0A%7D

add equals,hashcode,compareTo,toString method.