Last active
August 29, 2015 14:07
-
-
Save matthewmichihara/3aefe517f0a062df5965 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.fourpool.teleporter.app.data.google; | |
final class AutoParcel_DetailsResponse extends DetailsResponse { | |
private final String status; | |
private final Result result; | |
AutoParcel_DetailsResponse( | |
String status, | |
Result result) { | |
if (status == null) { | |
throw new NullPointerException("Null status"); | |
} | |
this.status = status; | |
if (result == null) { | |
throw new NullPointerException("Null result"); | |
} | |
this.result = result; | |
} | |
@Override | |
public String status() { | |
return status; | |
} | |
@Override | |
public Result result() { | |
return result; | |
} | |
@Override | |
public String toString() { | |
return "DetailsResponse{" | |
+ "status=" + status | |
+ ", result=" + result | |
+ "}"; | |
} | |
@Override | |
public boolean equals(Object o) { | |
if (o == this) { | |
return true; | |
} | |
if (o instanceof DetailsResponse) { | |
DetailsResponse that = (DetailsResponse) o; | |
return (this.status.equals(that.status())) | |
&& (this.result.equals(that.result())); | |
} | |
return false; | |
} | |
@Override | |
public int hashCode() { | |
int h = 1; | |
h *= 1000003; | |
h ^= status.hashCode(); | |
h *= 1000003; | |
h ^= result.hashCode(); | |
return h; | |
} | |
public static final android.os.Parcelable.Creator<DetailsResponse> CREATOR = new android.os.Parcelable.Creator<DetailsResponse>() { | |
@Override public DetailsResponse createFromParcel(android.os.Parcel in) { | |
return new AutoParcel_DetailsResponse(in); | |
} | |
@Override public DetailsResponse[] newArray(int size) { | |
return new DetailsResponse[size]; | |
} | |
}; | |
private final static java.lang.ClassLoader CL = AutoParcel_DetailsResponse.class.getClassLoader(); | |
private AutoParcel_DetailsResponse(android.os.Parcel in) { | |
this( | |
(String) in.readValue(CL), | |
(Result) in.readValue(CL)); | |
} | |
@Override public void writeToParcel(android.os.Parcel dest, int flags) { | |
dest.writeValue(status); | |
dest.writeValue(result); | |
} | |
@Override public int describeContents() { | |
return 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment