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.user.model;
- import android.os.Parcel;
- import android.os.Parcelable;
- import com.facebook.auth.viewercontext.ViewerContext;
- import com.facebook.inject.aj;
- import com.google.common.a.aw;
- import java.util.Collection;
- import javax.inject.a;
- // Referenced classes of package com.facebook.user.model:
- // r, k, UserFbidIdentifier, o,
- // p, t, q
- public class UserKey
- implements Parcelable
- {
- public static final android.os.Parcelable.Creator CREATOR = new r();
- private String a;
- private final String id;
- private final k type;
- private UserKey()
- {
- type = k.FACEBOOK;
- id = null;
- }
- private UserKey(Parcel parcel)
- {
- this((k)parcel.readSerializable(), parcel.readString());
- }
- UserKey(Parcel parcel, byte byte0)
- {
- this(parcel);
- }
- public UserKey(k k1, String s)
- {
- type = k1;
- id = s;
- }
- public static UserKey a(aj aj1)
- {
- return d(aj1);
- }
- public static UserKey a(UserFbidIdentifier userfbididentifier)
- {
- return new UserKey(k.FACEBOOK, userfbididentifier.a());
- }
- public static UserKey a(String s)
- {
- if (s == null)
- {
- return null;
- }
- String as[] = s.split(":", 2);
- if (as.length != 2)
- {
- throw new IllegalArgumentException((new StringBuilder("Cannot parse user key: ")).append(s).toString());
- } else
- {
- return new UserKey(k.valueOf(as[0]), as[1]);
- }
- }
- public static Collection a(Collection collection)
- {
- return aw.a(collection, new o());
- }
- public static UserKey b(String s)
- {
- return new UserKey(k.FACEBOOK, s);
- }
- public static Collection b(Collection collection)
- {
- return aw.a(collection, new p());
- }
- public static a b(aj aj1)
- {
- return new t(aj1);
- }
- public static Collection c(Collection collection)
- {
- return aw.a(collection, new q());
- }
- public static a c(aj aj1)
- {
- return aj1.a(new t(aj1));
- }
- private static UserKey d(aj aj1)
- {
- ViewerContext viewercontext = (ViewerContext)aj1.d(com/facebook/auth/viewercontext/ViewerContext);
- if (viewercontext != null)
- {
- return new UserKey(k.FACEBOOK, viewercontext.a());
- } else
- {
- return null;
- }
- }
- private void e()
- {
- if (a == null && id != null)
- {
- a = (new StringBuilder()).append(type).append(":").append(id).toString();
- }
- }
- public final k a()
- {
- return type;
- }
- public final String b()
- {
- return id;
- }
- public final String c()
- {
- e();
- return a;
- }
- public final boolean d()
- {
- return type != null && id != null;
- }
- public int describeContents()
- {
- return 0;
- }
- public boolean equals(Object obj)
- {
- if (this != obj)
- {
- if (obj == null || getClass() != obj.getClass())
- {
- return false;
- }
- UserKey userkey = (UserKey)obj;
- if (!id.equals(userkey.id))
- {
- return false;
- }
- if (type != userkey.type)
- {
- return false;
- }
- }
- return true;
- }
- public int hashCode()
- {
- return 31 * id.hashCode() + type.hashCode();
- }
- public String toString()
- {
- return c();
- }
- public void writeToParcel(Parcel parcel, int i)
- {
- parcel.writeSerializable(type);
- parcel.writeString(id);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement