@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj == null) { return false; } // be careful with inheritance else if (obj.getClass().equals(this.getClass())) { Account other = (Account) obj; return ((this.accountId == other.accountId) || (this.accountId.equals(other.accountId))) && ((this.name == other.name) || (this.name.equals(other.name))) && ((this.email == other.email) || (this.email.equals(other.email))) && (this.emailVerified == other.emailVerified) && (this.disabled == other.disabled) && ((this.profilePhotoUrl == other.profilePhotoUrl) || (this.profilePhotoUrl != null && this.profilePhotoUrl.equals(other.profilePhotoUrl))) ; } else { return false; } }
throw new JsonParseException(p, "Required field \"abbreviated_name\" missing."); value = new Name(f_givenName, f_surname, f_familiarName, f_displayName, f_abbreviatedName); expectEndObject(p); StoneDeserializerLogger.log(value, value.toStringMultiline()); return value;
private void displayCloudStatus() { String message = "Working locally."; String displayName; // Check Dropbox connection DbxClientV2 client = DbxUtil.getDbxClient(); if (client != null) { try { displayName = client.users().getCurrentAccount().getName().getDisplayName(); message = "Connected to Dropbox account as " + displayName + "."; Cloud.getInstance().setStatus(Cloud.Status.DBX_CONNECTED, " (" + displayName + ")"); } catch (DbxException ex) { // simply stay working locally. Cloud.getInstance().setStatus(Cloud.Status.DISCONNECTED); } } LOGGER.log(message); }
String additional = ""; if(client != null) { additional = " (" + client.users().getCurrentAccount().getName().getDisplayName() + ")";
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj == null) { return false; } // be careful with inheritance else if (obj.getClass().equals(this.getClass())) { BasicAccount other = (BasicAccount) obj; return ((this.accountId == other.accountId) || (this.accountId.equals(other.accountId))) && ((this.name == other.name) || (this.name.equals(other.name))) && ((this.email == other.email) || (this.email.equals(other.email))) && (this.emailVerified == other.emailVerified) && (this.disabled == other.disabled) && (this.isTeammate == other.isTeammate) && ((this.profilePhotoUrl == other.profilePhotoUrl) || (this.profilePhotoUrl != null && this.profilePhotoUrl.equals(other.profilePhotoUrl))) && ((this.teamMemberId == other.teamMemberId) || (this.teamMemberId != null && this.teamMemberId.equals(other.teamMemberId))) ; } else { return false; } }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj == null) { return false; } // be careful with inheritance else if (obj.getClass().equals(this.getClass())) { TeamMemberProfile other = (TeamMemberProfile) obj; return ((this.teamMemberId == other.teamMemberId) || (this.teamMemberId.equals(other.teamMemberId))) && ((this.email == other.email) || (this.email.equals(other.email))) && (this.emailVerified == other.emailVerified) && ((this.status == other.status) || (this.status.equals(other.status))) && ((this.name == other.name) || (this.name.equals(other.name))) && ((this.membershipType == other.membershipType) || (this.membershipType.equals(other.membershipType))) && ((this.groups == other.groups) || (this.groups.equals(other.groups))) && ((this.memberFolderId == other.memberFolderId) || (this.memberFolderId.equals(other.memberFolderId))) && ((this.externalId == other.externalId) || (this.externalId != null && this.externalId.equals(other.externalId))) && ((this.accountId == other.accountId) || (this.accountId != null && this.accountId.equals(other.accountId))) && ((this.joinedOn == other.joinedOn) || (this.joinedOn != null && this.joinedOn.equals(other.joinedOn))) && ((this.persistentId == other.persistentId) || (this.persistentId != null && this.persistentId.equals(other.persistentId))) && ((this.isDirectoryRestricted == other.isDirectoryRestricted) || (this.isDirectoryRestricted != null && this.isDirectoryRestricted.equals(other.isDirectoryRestricted))) ; } else { return false; } }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj == null) { return false; } // be careful with inheritance else if (obj.getClass().equals(this.getClass())) { MemberProfile other = (MemberProfile) obj; return ((this.teamMemberId == other.teamMemberId) || (this.teamMemberId.equals(other.teamMemberId))) && ((this.email == other.email) || (this.email.equals(other.email))) && (this.emailVerified == other.emailVerified) && ((this.status == other.status) || (this.status.equals(other.status))) && ((this.name == other.name) || (this.name.equals(other.name))) && ((this.membershipType == other.membershipType) || (this.membershipType.equals(other.membershipType))) && ((this.externalId == other.externalId) || (this.externalId != null && this.externalId.equals(other.externalId))) && ((this.accountId == other.accountId) || (this.accountId != null && this.accountId.equals(other.accountId))) && ((this.joinedOn == other.joinedOn) || (this.joinedOn != null && this.joinedOn.equals(other.joinedOn))) && ((this.persistentId == other.persistentId) || (this.persistentId != null && this.persistentId.equals(other.persistentId))) && ((this.isDirectoryRestricted == other.isDirectoryRestricted) || (this.isDirectoryRestricted != null && this.isDirectoryRestricted.equals(other.isDirectoryRestricted))) ; } else { return false; } }
FullAccount other = (FullAccount) obj; return ((this.accountId == other.accountId) || (this.accountId.equals(other.accountId))) && ((this.name == other.name) || (this.name.equals(other.name))) && ((this.email == other.email) || (this.email.equals(other.email))) && (this.emailVerified == other.emailVerified)