public class UserNameLogInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
givenName |
protected java.lang.String |
locale |
protected java.lang.String |
surname |
Constructor and Description |
---|
UserNameLogInfo(java.lang.String givenName,
java.lang.String surname)
User's name logged information
|
UserNameLogInfo(java.lang.String givenName,
java.lang.String surname,
java.lang.String locale)
User's name logged information
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getGivenName()
Given name.
|
java.lang.String |
getLocale()
Locale.
|
java.lang.String |
getSurname()
Surname.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.lang.String givenName
protected final java.lang.String surname
protected final java.lang.String locale
public UserNameLogInfo(java.lang.String givenName, java.lang.String surname, java.lang.String locale)
givenName
- Given name. Must not be null
.surname
- Surname. Must not be null
.locale
- Locale. Might be missing due to historical data gap.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public UserNameLogInfo(java.lang.String givenName, java.lang.String surname)
The default values for unset fields will be used.
givenName
- Given name. Must not be null
.surname
- Surname. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getGivenName()
null
.public java.lang.String getSurname()
null
.public java.lang.String getLocale()
null
if not present.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.