public class TeamProfileChangeNameDetails
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected TeamName |
newValue |
protected TeamName |
previousValue |
Constructor and Description |
---|
TeamProfileChangeNameDetails(TeamName newValue)
Changed team name.
|
TeamProfileChangeNameDetails(TeamName newValue,
TeamName previousValue)
Changed team name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
TeamName |
getNewValue()
New team name.
|
TeamName |
getPreviousValue()
Previous teams name.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final TeamName previousValue
protected final TeamName newValue
public TeamProfileChangeNameDetails(TeamName newValue, TeamName previousValue)
newValue
- New team name. Must not be null
.previousValue
- Previous teams name. Might be missing due to
historical data gap.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public TeamProfileChangeNameDetails(TeamName newValue)
The default values for unset fields will be used.
newValue
- New team name. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public TeamName getNewValue()
null
.public TeamName getPreviousValue()
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.