/** * Method toString */ public java.lang.String toString() { StringBuffer buf = new StringBuffer(); buf.append( "groupId = '" ); buf.append( getGroupId() + "'" ); buf.append( "\n" ); buf.append( "artifactId = '" ); buf.append( getArtifactId() + "'" ); buf.append( "\n" ); buf.append( "version = '" ); buf.append( getVersion() + "'" ); buf.append( "\n" ); buf.append( "classifier = '" ); buf.append( getClassifier() + "'" ); buf.append( "\n" ); buf.append( "type = '" ); buf.append( getType() + "'" ); return buf.toString(); } //-- java.lang.String toString()
/** * Method equals * * @param other */ public boolean equals(Object other) { if ( this == other) { return true; } if ( !(other instanceof ArchivaArtifactJavaDetails) ) { return false; } ArchivaArtifactJavaDetails that = (ArchivaArtifactJavaDetails) other; boolean result = true; result = result && ( getGroupId() == null ? that.getGroupId() == null : getGroupId().equals( that.getGroupId() ) ); result = result && ( getArtifactId() == null ? that.getArtifactId() == null : getArtifactId().equals( that.getArtifactId() ) ); result = result && ( getVersion() == null ? that.getVersion() == null : getVersion().equals( that.getVersion() ) ); result = result && ( getClassifier() == null ? that.getClassifier() == null : getClassifier().equals( that.getClassifier() ) ); result = result && ( getType() == null ? that.getType() == null : getType().equals( that.getType() ) ); return result; } //-- boolean equals(Object)