Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2011-2012 The Kuali Foundation Licensed under the Educational Community License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.opensource.org/licenses/ecl2.php Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
package org.kuali.maven.plugins.externals;
public class GAV {
	public GAV() {
		this(nullnullnull);
	}
	public GAV(String groupIdString artifactIdString version) {
		super();
		this. = groupId;
		this. = artifactId;
		this. = version;
	}
	public String getGroupId() {
		return ;
	}
	public void setGroupId(String groupId) {
		this. = groupId;
	}
	public String getArtifactId() {
		return ;
	}
	public void setArtifactId(String artifactId) {
		this. = artifactId;
	}
	public String getVersion() {
		return ;
	}
	public void setVersion(String version) {
		this. = version;
	}
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (( == null) ? 0 : .hashCode());
		result = prime * result + (( == null) ? 0 : .hashCode());
		result = prime * result + (( == null) ? 0 : .hashCode());
		return result;
	}
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		GAV other = (GAVobj;
		if ( == null) {
			if (other.artifactId != null)
				return false;
else if (!.equals(other.artifactId))
			return false;
		if ( == null) {
			if (other.groupId != null)
				return false;
else if (!.equals(other.groupId))
			return false;
		if ( == null) {
			if (other.version != null)
				return false;
else if (!.equals(other.version))
			return false;
		return true;
	}
New to GrepCode? Check out our FAQ X