summaryrefslogtreecommitdiffstats
path: root/java/BluetoothObject.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/BluetoothObject.java')
-rw-r--r--java/BluetoothObject.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/java/BluetoothObject.java b/java/BluetoothObject.java
new file mode 100644
index 00000000..2965b5a1
--- /dev/null
+++ b/java/BluetoothObject.java
@@ -0,0 +1,31 @@
+import java.util.*;
+
+public class BluetoothObject
+{
+ long nativeInstance;
+
+ public native BluetoothType getBluetoothType();
+ public native BluetoothObject clone();
+
+ private native void delete();
+ private native boolean operatorEqual(BluetoothObject obj);
+
+ protected BluetoothObject(long instance)
+ {
+ nativeInstance = instance;
+ }
+
+ protected void finalize()
+ {
+ delete();
+ }
+
+ public boolean equals(BluetoothObject obj)
+ {
+ if (obj == null)
+ {
+ return false;
+ }
+ return operatorEqual(obj);
+ }
+}