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