FileDocCategorySizeDatePackage
AccountAndUser.javaAPI DocAndroid 5.1 API1430Thu Mar 12 22:22:08 GMT 2015android.accounts

AccountAndUser

public class AccountAndUser extends Object
Used to store the Account and the UserId this account is associated with.
hide

Fields Summary
public Account
account
public int
userId
Constructors Summary
public AccountAndUser(Account account, int userId)

        this.account = account;
        this.userId = userId;
    
Methods Summary
public booleanequals(java.lang.Object o)

        if (this == o) return true;
        if (!(o instanceof AccountAndUser)) return false;
        final AccountAndUser other = (AccountAndUser) o;
        return this.account.equals(other.account)
                && this.userId == other.userId;
    
public inthashCode()

        return account.hashCode() + userId;
    
public java.lang.StringtoString()

        return account.toString() + " u" + userId;