19package org.sleuthkit.datamodel;
21import java.util.Arrays;
30public final class Account {
35 private final long account_id;
42 private final String typeSpecificID;
44 public static final class Type {
93 private final String typeName;
94 private final String displayName;
102 public Type(String typeName, String displayName) {
103 this.typeName = typeName;
104 this.displayName = displayName;
113 return this.typeName;
129 }
else if (!(that instanceof Account.Type)) {
135 return this.typeName.
equals(thatType.getTypeName());
142 hash = 83 * hash + (this.typeName !=
null ? this.typeName.hashCode() : 0);
143 hash = 83 * hash + (this.displayName !=
null ? this.displayName.hashCode() : 0);
150 return " displayName=" + this.displayName
151 +
", typeName=" + this.typeName +
")";
156 this.account_id = account_id;
157 this.accountType = accountType;
158 this.typeSpecificID = typeSpecificId;
168 return this.typeSpecificID;
177 return this.accountType;
187 return this.account_id;
193 hash = 43 * hash + (int) (this.account_id ^ (this.account_id >>> 32));
194 hash = 43 * hash + (this.accountType !=
null ? this.accountType.hashCode() : 0);
195 hash = 43 * hash + (this.typeSpecificID !=
null ? this.typeSpecificID.hashCode() : 0);
207 if (getClass() != obj.getClass()) {
210 final Account other = (Account) obj;
211 if (this.account_id != other.account_id) {
214 if ((this.typeSpecificID ==
null) ? (other.typeSpecificID !=
null) : !
this.typeSpecificID.equals(other.typeSpecificID)) {
217 if (this.accountType != other.accountType && (
this.accountType ==
null || !
this.accountType.equals(other.accountType))) {
static final Account.Type CREDIT_CARD
Type(String typeName, String displayName)
static final List< Account.Type > PREDEFINED_ACCOUNT_TYPES
static final Account.Type WEBSITE
static final Account.Type WHATSAPP
static final Account.Type XENDER
static final Account.Type PHONE
static final Account.Type SKYPE
static final Account.Type VIBER
boolean equals(Object that)
static final Account.Type ZAPYA
static final Account.Type FACEBOOK
static final Account.Type MESSAGING_APP
static final Account.Type TANGO
static final Account.Type DEVICE
static final Account.Type SHAREIT
static final Account.Type THREEMA
static final Account.Type LINE
static final Account.Type IMO
static final Account.Type TEXTNOW
static final Account.Type EMAIL
static final Account.Type TWITTER
static final Account.Type INSTAGRAM
boolean equals(Object obj)
Account.Type getAccountType()
String getTypeSpecificID()