Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2003, 2008 IBM Corporation and others. 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: IBM Corporation - initial API and implementation /
package org.eclipse.osgi.internal.loader;
public class SingleSourcePackage extends PackageSource {
	public SingleSourcePackage(String idBundleLoaderProxy supplier) {
		super(id);
		this. = supplier;
	}
		return new SingleSourcePackage[] {this};
	}
	public String toString() {
		return  + " -> " + //$NON-NLS-1$
	}
	public Class loadClass(String namethrows ClassNotFoundException {
	}
	public URL getResource(String name) {
	}
	public Enumeration getResources(String name) {
	}
	public boolean equals(Object source) {
		if (this == source)
			return true;
		if (!(source instanceof SingleSourcePackage))
			return false;
		SingleSourcePackage singleSource = (SingleSourcePackagesource;
		// we do an == test on id because the id is interned in the constructor of PackageSource
		return  == singleSource.supplier &&  == singleSource.getId();
	}
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + .hashCode();
		result = prime * result + .hashCode();
		return result;
	}
New to GrepCode? Check out our FAQ X