diff options
author | Sven Gothel <[email protected]> | 2022-02-08 13:03:09 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-02-08 13:03:09 +0100 |
commit | d200174a7c14961cd3ab2d8ee936458f2aae5234 (patch) | |
tree | ccb066bcc64805adfe7842b6eaa05fe2c6c99a69 /java/org | |
parent | 3608b45464094ea465a490a0095863eae2aa4328 (diff) |
BT[Adapter|Device].java: Document equals(..) method
Diffstat (limited to 'java/org')
-rw-r--r-- | java/org/direct_bt/BTAdapter.java | 9 | ||||
-rw-r--r-- | java/org/direct_bt/BTDevice.java | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/java/org/direct_bt/BTAdapter.java b/java/org/direct_bt/BTAdapter.java index 8647a865..f12a7649 100644 --- a/java/org/direct_bt/BTAdapter.java +++ b/java/org/direct_bt/BTAdapter.java @@ -434,6 +434,15 @@ public interface BTAdapter extends BTObject boolean isAdvertising(); /** + * If both types are of {@link BTAdapter}, it compares their {@link BDAddressAndType}, see {@link #getAddressAndType()}. + * <p> + * {@inheritDoc} + * </p> + */ + @Override + boolean equals(final Object obj); + + /** * Returns the adapter's public BDAddressAndType. * <p> * The adapter's address as initially reported by the system is always its public address, i.e. {@link BDAddressType#BDADDR_LE_PUBLIC}. diff --git a/java/org/direct_bt/BTDevice.java b/java/org/direct_bt/BTDevice.java index 6b25a3cf..704c75b0 100644 --- a/java/org/direct_bt/BTDevice.java +++ b/java/org/direct_bt/BTDevice.java @@ -768,6 +768,15 @@ public interface BTDevice extends BTObject long getLastUpdateTimestamp(); /** + * If both types are of {@link BTDevice}, it compares their {@link BDAddressAndType}, see {@link #getAddressAndType()}. + * <p> + * {@inheritDoc} + * </p> + */ + @Override + boolean equals(final Object obj); + + /** * Returns the unique device {@link EUI48} address and {@link BDAddressType} type. * @since 2.2.0 */ |