All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fz.nettyx.channel.bluetooth.BtDeviceAddress Maven / Gradle / Ivy

There is a newer version: 2.3.17-RELEASE
Show newest version
package org.fz.nettyx.channel.bluetooth;

import java.net.SocketAddress;

/**
 * @author fengbinbin
 * @version 1.0
 * @since 2024/5/26 10:32
 */
public class BtDeviceAddress extends SocketAddress {

    private final String value;
    private final String friendlyName;

    public BtDeviceAddress(String value, String friendlyName) {
        this.value        = value;
        this.friendlyName = friendlyName;
    }

    public BtDeviceAddress(String value) {
        this.value = this.friendlyName = value;
    }

    public String value() {
        return value;
    }

    @Override
    public String toString() {
        return friendlyName;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy