@Override public int compareTo(@NonNull WiFiDetail another) { return new CompareToBuilder() .append(getSSID(), another.getSSID()) .append(getBSSID(), another.getBSSID()) .toComparison(); }
public WiFiDetail(@NonNull WiFiDetail wiFiDetail, @NonNull WiFiAdditional wiFiAdditional) { this( wiFiDetail.SSID, wiFiDetail.BSSID, wiFiDetail.getCapabilities(), wiFiDetail.getWiFiSignal(), wiFiAdditional); }
@Override public boolean equals(Object other) { if (this == other) return true; if (other == null || getClass() != other.getClass()) return false; WiFiDetail otherDetail = (WiFiDetail) other; return new EqualsBuilder() .append(getSSID(), otherDetail.getSSID()) .append(getBSSID(), otherDetail.getBSSID()) .isEquals(); }