【发布时间】:2015-01-24 16:07:53
【问题描述】:
如何在类图中表示以下代码?
public class BluetoothClass{
public BluetoothClass(){
}
private final BluetoothGattCallback btleGattCallback = new BluetoothGattCallback() {
@Override
public void onConnectionStateChange(android.bluetooth.BluetoothGatt gatt, int status, int newState) {
super.onConnectionStateChange(gatt, status, newState);
//do something
}
@Override
public void onReadRemoteRssi(android.bluetooth.BluetoothGatt gatt, int rssi, int status) {
super.onReadRemoteRssi(gatt, rssi, status);
//do something
}
};
}
我应该将它表示为一个内部类吗?
【问题讨论】:
标签: android bluetooth callback uml class-diagram