Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 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.facebook.location;
- import android.location.Location;
- import android.os.Parcel;
- import android.os.Parcelable;
- import com.google.common.base.Preconditions;
- // Referenced classes of package com.facebook.location:
- // l, m
- public class Coordinates
- implements Parcelable
- {
- public static final android.os.Parcelable.Creator CREATOR = new l();
- private final double a;
- private final double b;
- private final Double c;
- private final Float d;
- private final Float e;
- private final Float f;
- private final Float g;
- private Coordinates(Parcel parcel)
- {
- a = parcel.readDouble();
- b = parcel.readDouble();
- c = (Double)parcel.readValue(null);
- d = (Float)parcel.readValue(null);
- e = (Float)parcel.readValue(null);
- f = (Float)parcel.readValue(null);
- g = (Float)parcel.readValue(null);
- }
- Coordinates(Parcel parcel, byte byte0)
- {
- this(parcel);
- }
- Coordinates(m m1)
- {
- boolean flag;
- if (m1.a() != null && m1.b() != null)
- {
- flag = true;
- } else
- {
- flag = false;
- }
- Preconditions.checkArgument(flag);
- a = m1.a().doubleValue();
- b = m1.b().doubleValue();
- c = m1.c();
- d = m1.d();
- e = m1.e();
- f = m1.f();
- g = m1.g();
- }
- public static Coordinates a(Location location)
- {
- if (location == null)
- {
- return null;
- } else
- {
- return newBuilder().a(Double.valueOf(location.getLatitude())).b(Double.valueOf(location.getLongitude())).c(Double.valueOf(location.getAltitude())).a(Float.valueOf(location.getAccuracy())).c(Float.valueOf(location.getBearing())).d(Float.valueOf(location.getSpeed())).h();
- }
- }
- public static m newBuilder()
- {
- return new m();
- }
- public final Location a()
- {
- Location location = new Location("");
- location.setLatitude(a);
- location.setLongitude(b);
- if (c != null)
- {
- location.setAltitude(c.doubleValue());
- }
- if (d != null)
- {
- location.setAccuracy(d.floatValue());
- }
- if (g != null)
- {
- location.setSpeed(g.floatValue());
- }
- return location;
- }
- public final double b()
- {
- return a;
- }
- public final double c()
- {
- return b;
- }
- public final Double d()
- {
- return c;
- }
- public int describeContents()
- {
- return 0;
- }
- public final boolean e()
- {
- return c != null;
- }
- public final Float f()
- {
- return d;
- }
- public final boolean g()
- {
- return d != null;
- }
- public final Float h()
- {
- return e;
- }
- public final boolean i()
- {
- return e != null;
- }
- public final Float j()
- {
- return f;
- }
- public final boolean k()
- {
- return f != null;
- }
- public final Float l()
- {
- return g;
- }
- public final boolean m()
- {
- return g != null;
- }
- public void writeToParcel(Parcel parcel, int i1)
- {
- parcel.writeDouble(a);
- parcel.writeDouble(b);
- parcel.writeValue(c);
- parcel.writeValue(d);
- parcel.writeValue(e);
- parcel.writeValue(f);
- parcel.writeValue(g);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement