Package com.dropbox.core.v2.users
Class Name
java.lang.Object
com.dropbox.core.v2.users.Name
Representations for a person's name to assist with internationalization.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAn abbreviated form of the person's name.A name that can be used directly to represent the name of a user's Dropbox account.Locale-dependent name.Also known as a first name.Also known as a last name or family name.inthashCode()toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
givenName
-
surname
-
familiarName
-
displayName
-
abbreviatedName
-
-
Constructor Details
-
Name
public Name(@Nonnull String givenName, @Nonnull String surname, @Nonnull String familiarName, @Nonnull String displayName, @Nonnull String abbreviatedName) Representations for a person's name to assist with internationalization.- Parameters:
givenName- Also known as a first name. Must not benull.surname- Also known as a last name or family name. Must not benull.familiarName- Locale-dependent name. In the US, a person's familiar name is theirgetGivenName(), but elsewhere, it could be any combination of a person'sgetGivenName()andgetSurname(). Must not benull.displayName- A name that can be used directly to represent the name of a user's Dropbox account. Must not benull.abbreviatedName- An abbreviated form of the person's name. Their initials in most locales. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getGivenName
Also known as a first name.- Returns:
- value for this field, never
null.
-
getSurname
Also known as a last name or family name.- Returns:
- value for this field, never
null.
-
getFamiliarName
Locale-dependent name. In the US, a person's familiar name is theirgetGivenName(), but elsewhere, it could be any combination of a person'sgetGivenName()andgetSurname().- Returns:
- value for this field, never
null.
-
getDisplayName
A name that can be used directly to represent the name of a user's Dropbox account.- Returns:
- value for this field, never
null.
-
getAbbreviatedName
An abbreviated form of the person's name. Their initials in most locales.- Returns:
- value for this field, never
null.
-
hashCode
public int hashCode() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-