bionic.js.BjsNativeObjectIdentifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bionic-js Show documentation
Show all versions of bionic-js Show documentation
The library to integrate Bionic JS in Java applications
package bionic.js;
import jjbridge.api.runtime.JSReference;
class BjsNativeObjectIdentifier
{
private final JSReference jsReference;
private final Class objectType;
BjsNativeObjectIdentifier(JSReference jsReference, Class clazz)
{
this.jsReference = jsReference;
this.objectType = clazz;
}
@Override
public int hashCode()
{
return jsReference.hashCode() * 997 + objectType.hashCode();
}
@Override
public boolean equals(Object o)
{
if (!(o instanceof BjsNativeObjectIdentifier))
{
return false;
}
BjsNativeObjectIdentifier> that = (BjsNativeObjectIdentifier>) o;
return jsReference.equals(that.jsReference) && objectType.equals(that.objectType);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy