All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.windup.graph.clz.GraphableClz Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2013 Red Hat, Inc. and/or its affiliates.
 *  
 *  All rights reserved. This program and the accompanying materials
 *  are made available under the terms of the Eclipse Public License v1.0
 *  which accompanies this distribution, and is available at
 *  http://www.eclipse.org/legal/epl-v10.html
 *  
 *  Contributors:
 *      Brad Davis - [email protected] - Initial API and implementation
*/
package org.jboss.windup.graph.clz;

import java.util.HashSet;
import java.util.Set;

public abstract class GraphableClz {

	private final String className;
	private Set providesFor = new HashSet();
	
	public GraphableClz(String className) {
		this.className = className;
	}
	
	public String getClassName() {
		return className;
	}

	public Set getProvidesFor() {
		return providesFor;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((className == null) ? 0 : className.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		GraphableClz other = (GraphableClz) obj;
		if (className == null) {
			if (other.className != null)
				return false;
		} else if (!className.equals(other.className))
			return false;
		return true;
	}
	
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy