/** Implement the Parcelable interface */ @Override public void writeToParcel(Parcel dest, int flags) { if (DBG) log("writeToParcel(Parcel, int): " + toString()); super.writeToParcel(dest, flags, TYPE_LTE); mCellIdentityLte.writeToParcel(dest, flags); mCellSignalStrengthLte.writeToParcel(dest, flags); }
@Override public boolean equals(Object other) { if (!super.equals(other)) { return false; } try { CellInfoLte o = (CellInfoLte) other; return mCellIdentityLte.equals(o.mCellIdentityLte) && mCellSignalStrengthLte.equals(o.mCellSignalStrengthLte); } catch (ClassCastException e) { return false; } }
/** @return hash code */ @Override public int hashCode() { return super.hashCode() + mCellIdentityLte.hashCode() + mCellSignalStrengthLte.hashCode(); }