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

soot.jimple.infoflow.collect.IdentityWrapper Maven / Gradle / Ivy

There is a newer version: 2.9.0
Show newest version
package soot.jimple.infoflow.collect;

class IdentityWrapper {

	private final E contents;
	
	public IdentityWrapper(E abs) {
		this.contents = abs;
	}
	
	public E getContents() {
		return this.contents;
	}
	
	@Override
	public String toString() {
		return this.contents.toString();
	}
	
	@SuppressWarnings("rawtypes")
	@Override
	public boolean equals(Object other) {
		if (other == null)
			return false;
		if (other == this)
			return true;
		if (this.getClass() != other.getClass())
			return false;
		return this.contents == ((IdentityWrapper) other).contents;
	}
	
	@Override
	public int hashCode() {
		return System.identityHashCode(this.contents);
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy