// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.olio.data.object.user; import android.os.Parcel; import android.os.Parcelable; import java.io.Serializable; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder; public class Location implements Serializable, Parcelable { public static final class LocationType extends Enum { private static final LocationType $VALUES[]; public static final LocationType HOME; public static final LocationType NONE; public static final LocationType OTHER; public static final LocationType WORK; public static LocationType valueOf(String s) { return (LocationType)Enum.valueOf(com/olio/data/object/user/Location$LocationType, s); } public static LocationType[] values() { return (LocationType[])$VALUES.clone(); } static { HOME = new LocationType("HOME", 0); WORK = new LocationType("WORK", 1); OTHER = new LocationType("OTHER", 2); NONE = new LocationType("NONE", 3); $VALUES = (new LocationType[] { HOME, WORK, OTHER, NONE }); } private LocationType(String s, int i) { super(s, i); } } public static final android.os.Parcelable.Creator CREATOR = new android.os.Parcelable.Creator() { public Location createFromParcel(Parcel parcel) { return new Location(parcel); } public volatile Object createFromParcel(Parcel parcel) { return createFromParcel(parcel); } public Location[] newArray(int i) { return new Location[i]; } public volatile Object[] newArray(int i) { return newArray(i); } }; private static final long serialVersionUID = 0xf622e5b3f530da02L; private String displayAddress; private String displayName; private String googlePlaceId; private double latitude; private LocationType locationType; private double longitude; public Location() { } private Location(Parcel parcel) { displayAddress = parcel.readString(); locationType = (LocationType)parcel.readSerializable(); googlePlaceId = parcel.readString(); displayAddress = parcel.readString(); latitude = parcel.readDouble(); longitude = parcel.readDouble(); } public static long getSerialVersionUID() { return 0xf622e5b3f530da02L; } public int describeContents() { return 0; } public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } else { obj = (Location)obj; return (new EqualsBuilder()).append(googlePlaceId, ((Location) (obj)).googlePlaceId).append(displayName, ((Location) (obj)).displayName).append(locationType, ((Location) (obj)).locationType).append(displayAddress, ((Location) (obj)).displayAddress).append(latitude, ((Location) (obj)).latitude).append(longitude, ((Location) (obj)).longitude).isEquals(); } } public String getDisplayAddress() { return displayAddress; } public String getDisplayName() { return displayName; } public String getGooglePlaceId() { return googlePlaceId; } public double getLatitude() { return latitude; } public LocationType getLocationType() { return locationType; } public double getLongitude() { return longitude; } public int hashCode() { return (new HashCodeBuilder(17, 37)).append(displayName).append(locationType).append(googlePlaceId).append(displayAddress).append(latitude).append(longitude).toHashCode(); } public void setDisplayAddress(String s) { displayAddress = s; } public void setDisplayName(String s) { displayName = s; } public void setGooglePlaceId(String s) { googlePlaceId = s; } public void setLatitude(double d) { latitude = d; } public void setLocationType(LocationType locationtype) { locationType = locationtype; } public void setLongitude(double d) { longitude = d; } public String toString() { return getDisplayAddress(); } public void writeToParcel(Parcel parcel, int i) { parcel.writeString(displayAddress); parcel.writeSerializable(locationType); parcel.writeString(googlePlaceId); parcel.writeString(displayAddress); parcel.writeDouble(latitude); parcel.writeDouble(longitude); } }