BluetoothAddress


public final class BluetoothAddress


Represents a Bluetooth address for a remote device.

Summary

Constants

static final int

Address type is public and registered with the IEEE.

static final int

Address type is random non resolvable.

static final int

Address type is random resolvable.

static final int

Address type is random static.

static final int

Address type is unknown.

Public constructors

BluetoothAddress(@NonNull String address, int addressType)

Public methods

boolean
equals(Object other)
final @NonNull String

a valid Bluetooth MAC address

final int

a valid address type

int

Constants

ADDRESS_TYPE_PUBLIC

public static final int ADDRESS_TYPE_PUBLIC = 0

Address type is public and registered with the IEEE.

ADDRESS_TYPE_RANDOM_NON_RESOLVABLE

public static final int ADDRESS_TYPE_RANDOM_NON_RESOLVABLE = 3

Address type is random non resolvable.

ADDRESS_TYPE_RANDOM_RESOLVABLE

public static final int ADDRESS_TYPE_RANDOM_RESOLVABLE = 2

Address type is random resolvable.

ADDRESS_TYPE_RANDOM_STATIC

public static final int ADDRESS_TYPE_RANDOM_STATIC = 1

Address type is random static.

ADDRESS_TYPE_UNKNOWN

public static final int ADDRESS_TYPE_UNKNOWN = 65535

Address type is unknown.

Public constructors

BluetoothAddress

Added in 1.0.0-alpha02
public BluetoothAddress(@NonNull String address, int addressType)

Public methods

equals

public boolean equals(Object other)

getAddress

Added in 1.0.0-alpha02
public final @NonNull String getAddress()

a valid Bluetooth MAC address

getAddressType

Added in 1.0.0-alpha02
public final int getAddressType()

a valid address type

hashCode

public int hashCode()