Class UserNameLogInfo

java.lang.Object
com.dropbox.core.v2.teamlog.UserNameLogInfo

public class UserNameLogInfo extends Object
User's name logged information
  • Field Details

    • givenName

      @Nonnull protected final String givenName
    • surname

      @Nonnull protected final String surname
    • locale

      @Nullable protected final String locale
  • Constructor Details

    • UserNameLogInfo

      public UserNameLogInfo(@Nonnull String givenName, @Nonnull String surname, @Nullable String locale)
      User's name logged information
      Parameters:
      givenName - Given name. Must not be null.
      surname - Surname. Must not be null.
      locale - Locale. Might be missing due to historical data gap.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • UserNameLogInfo

      public UserNameLogInfo(@Nonnull String givenName, @Nonnull String surname)
      User's name logged information

      The default values for unset fields will be used.

      Parameters:
      givenName - Given name. Must not be null.
      surname - Surname. Must not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getGivenName

      @Nonnull public String getGivenName()
      Given name.
      Returns:
      value for this field, never null.
    • getSurname

      @Nonnull public String getSurname()
      Surname.
      Returns:
      value for this field, never null.
    • getLocale

      @Nullable public String getLocale()
      Locale. Might be missing due to historical data gap.
      Returns:
      value for this field, or null if not present.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringMultiline

      public String 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