@Test public void testEquality() { GuidanceNextManeuverData data = new GuidanceNextManeuverData(ICON_ID, DISTANCE, STREET_NAME); assertThat(mManeuverData, is(data)); GuidanceNextManeuverData data1 = new GuidanceNextManeuverData(0, DISTANCE, STREET_NAME); assertThat(mManeuverData, is(not(data1))); assertThat(null, is(not(mManeuverData))); assertThat(mManeuverData.hashCode(), is(data.hashCode())); }
@Override public int hashCode() { return ((this.mIconId * 31 + (int) (this.mDistance ^ this.mDistance >>> 32)) * 31 + (this.mStreetName == null ? 0 : this.mStreetName.hashCode())) * 31; }
GuidanceNextManeuverData implements Parcelable { @Override public int hashCode() { return ((this.mIconId * 31 + (int) (this.mDistance ^ this.mDistance >>> 32)) * 31 + (this.mStreetName == null ? 0 : this.mStreetName.hashCode())) * 31; } }
GuidanceNextManeuverData implements Parcelable { @Override public int hashCode() { return ((this.mIconId * 31 + (int) (this.mDistance ^ this.mDistance >>> 32)) * 31 + (this.mStreetName == null ? 0 : this.mStreetName.hashCode())) * 31; } GuidanceNextManeuverData(Integer iconId, Long distance, String streetName); protected  GuidanceNextManeuverData(Parcel in); }
GuidanceNextManeuverData implements Parcelable { @Override public int hashCode() { return ((this.mIconId * 31 + (int) (this.mDistance ^ this.mDistance >>> 32)) * 31 + (this.mStreetName == null ? 0 : this.mStreetName.hashCode())) * 31; } GuidanceNextManeuverData(Integer iconId, Long distance, String streetName); protected  GuidanceNextManeuverData(Parcel in); @Override void writeToParcel(Parcel dest, int flags); @Override int describeContents(); Integer getIconId(); Long getDistance(); String getStreetName(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj1); }
GuidanceNextManeuverData implements Parcelable { @Override public int hashCode() { return ((this.mIconId * 31 + (int) (this.mDistance ^ this.mDistance >>> 32)) * 31 + (this.mStreetName == null ? 0 : this.mStreetName.hashCode())) * 31; } GuidanceNextManeuverData(Integer iconId, Long distance, String streetName); protected  GuidanceNextManeuverData(Parcel in); @Override void writeToParcel(Parcel dest, int flags); @Override int describeContents(); Integer getIconId(); Long getDistance(); String getStreetName(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj1); static final Creator<GuidanceNextManeuverData> CREATOR; }