@Test public void testHasMoreInformation() { PeerProperties pp1 = new PeerProperties(TEST_MAC); PeerProperties pp2 = new PeerProperties(TEST_MAC); assertThat(pp1.hasMoreInformation(pp2), is(false)); assertThat(pp2.hasMoreInformation(pp1), is(false)); pp1 = new PeerProperties(TEST_MAC, TEST_EXTRA_INFO); assertThat(pp1.hasMoreInformation(pp2), is(true)); assertThat(pp2.hasMoreInformation(pp1), is(false)); pp2 = new PeerProperties(TEST_MAC, TEST_EXTRA_INFO); assertThat(pp1.hasMoreInformation(pp2), is(false)); assertThat(pp2.hasMoreInformation(pp1), is(false)); pp1 = new PeerProperties("type1", "deviceName1", "address1"); assertThat(pp1.hasMoreInformation(pp2), is(true)); assertThat(pp2.hasMoreInformation(pp1), is(false)); pp2 = new PeerProperties("type2", "deviceName2", "address2"); assertThat(pp1.hasMoreInformation(pp2), is(false)); assertThat(pp2.hasMoreInformation(pp1), is(false)); }
public boolean hasMoreInformation(PeerProperties otherPeerProperties) { return (this.fieldsWithData() > otherPeerProperties.fieldsWithData()); }
PeerProperties { public boolean hasMoreInformation(PeerProperties otherPeerProperties) { return (this.fieldsWithData() > otherPeerProperties.fieldsWithData()); } }
PeerProperties { public boolean hasMoreInformation(PeerProperties otherPeerProperties) { return (this.fieldsWithData() > otherPeerProperties.fieldsWithData()); } PeerProperties(String bluetoothMacAddress);  PeerProperties(String serviceType, String deviceName, String deviceAddress);  PeerProperties(String bluetoothMacAddress, int extraInformation); }
PeerProperties { public boolean hasMoreInformation(PeerProperties otherPeerProperties) { return (this.fieldsWithData() > otherPeerProperties.fieldsWithData()); } PeerProperties(String bluetoothMacAddress);  PeerProperties(String serviceType, String deviceName, String deviceAddress);  PeerProperties(String bluetoothMacAddress, int extraInformation); String getId(); String getBluetoothMacAddress(); String getDeviceName(); String getDeviceAddress(); int getExtraInformation(); void copyFrom(PeerProperties sourcePeerProperties); boolean isValid(); boolean hasMoreInformation(PeerProperties otherPeerProperties); static boolean copyMissingValuesFromOldPeer(
            PeerProperties oldPeerProperties, PeerProperties newPeerProperties); @Override boolean equals(Object otherPeerProperties); @Override String toString(); }
PeerProperties { public boolean hasMoreInformation(PeerProperties otherPeerProperties) { return (this.fieldsWithData() > otherPeerProperties.fieldsWithData()); } PeerProperties(String bluetoothMacAddress);  PeerProperties(String serviceType, String deviceName, String deviceAddress);  PeerProperties(String bluetoothMacAddress, int extraInformation); String getId(); String getBluetoothMacAddress(); String getDeviceName(); String getDeviceAddress(); int getExtraInformation(); void copyFrom(PeerProperties sourcePeerProperties); boolean isValid(); boolean hasMoreInformation(PeerProperties otherPeerProperties); static boolean copyMissingValuesFromOldPeer(
            PeerProperties oldPeerProperties, PeerProperties newPeerProperties); @Override boolean equals(Object otherPeerProperties); @Override String toString(); static final String BLUETOOTH_MAC_ADDRESS_UNKNOWN; static final int NO_EXTRA_INFORMATION; }