github MarkusJx/node-java-bridge v2.1.0
Release v2.1.0

latest releases: v2.6.0, v2.5.2, v2.5.1...
2 years ago

What's Changed

  • Renamed the module to java-bridge
  • Bumped the required node.js version to 15
  • Set the target version of the java library to 1.8
  • Added an instanceOf method to class instances:
import { importClass } from 'java-bridge';

const JavaString = importClass('java.lang.String');
const str = new JavaString('Hello World');

// Pass the class to check against as the argument
str.instanceOf(JavaString); // true

// You can also pass the name of the class to check against
str.instanceOf('java.lang.String'); // true
str.instanceOf('java.lang.Object'); // true
str.instanceOf('java.util.List'); // false

Full Changelog: v2.0.1...v2.1.0

Don't miss a new node-java-bridge release

NewReleases is sending notifications on new releases.