Posted 30 March 2014 - 08:41 AM
In CC 1.6 IPeripheral now has a new method:
Obviously, the documentation isn't helpful. What is it used for and how is it expected to be implemented?
I would expect that it's the same as Object.equals, but if that's the case, then there's no need for it to be in IPeripheral. The fact that it's in IPeripheral suggests it needs special behaviour, not just
Also, are we now required to use IPeripheralProvider forperipherals that can only connect on one side all peripherals?
/**
* TODO: Document me
*/
public boolean equals(IPeripheral other);
Obviously, the documentation isn't helpful. What is it used for and how is it expected to be implemented?
I would expect that it's the same as Object.equals, but if that's the case, then there's no need for it to be in IPeripheral. The fact that it's in IPeripheral suggests it needs special behaviour, not just
@Override
public boolean equals(IPeripheral other) {
return other == this;
}
Also, are we now required to use IPeripheralProvider for
Edited on 30 March 2014 - 07:50 AM