IcyHeaders implements Metadata.Entry { @Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(bitrate); dest.writeString(genre); dest.writeString(name); dest.writeString(url); Util.writeBoolean(dest, isPublic); dest.writeInt(metadataInterval); } IcyHeaders(
      int bitrate,
      @Nullable String genre,
      @Nullable String name,
      @Nullable String url,
      boolean isPublic,
      int metadataInterval);   IcyHeaders(Parcel in); @Nullable static IcyHeaders parse(Map<String, List<String>> responseHeaders); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); @Override String toString(); @Override void writeToParcel(Parcel dest, int flags); @Override int describeContents(); static final String REQUEST_HEADER_ENABLE_METADATA_NAME; static final String REQUEST_HEADER_ENABLE_METADATA_VALUE; final int bitrate; @Nullable final String genre; @Nullable final String name; @Nullable final String url; final boolean isPublic; final int metadataInterval; static final Parcelable.Creator<IcyHeaders> CREATOR; }
@Test public void parcelEquals() { IcyHeaders icyHeaders = new IcyHeaders( 1234, "genre", "name", "url", true, 5678); Parcel parcel = Parcel.obtain(); icyHeaders.writeToParcel(parcel, 0); parcel.setDataPosition(0); IcyHeaders fromParcelIcyHeaders = IcyHeaders.CREATOR.createFromParcel(parcel); assertThat(fromParcelIcyHeaders).isEqualTo(icyHeaders); }