@Generated(value="OracleSDKGenerator", comments="API Version: 20210630") public final class FileDiffResponse extends ExplicitlySetBmcModel
Response object for showing differences for a file between two commits.
Note: Objects should always be created or deserialized using the FileDiffResponse.Builder
. This model distinguishes fields
that are null
because they are unset from fields that are explicitly set to null
. This is done in
the setter methods of the FileDiffResponse.Builder
, which maintain a set of all explicitly set fields called
ExplicitlySetBmcModel.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take
ExplicitlySetBmcModel.__explicitlySet__
into account. The constructor, on the other hand, does not set ExplicitlySetBmcModel.__explicitlySet__
(since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
FileDiffResponse.Builder |
Constructor and Description |
---|
FileDiffResponse(String oldPath,
String newPath,
String oldId,
String newId,
Boolean areConflictsInFile,
Boolean isLarge,
Boolean isBinary,
List<DiffChunk> changes)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static FileDiffResponse.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Boolean |
getAreConflictsInFile()
Indicates whether the changed file contains conflicts.
|
List<DiffChunk> |
getChanges()
List of changed section in the file.
|
Boolean |
getIsBinary()
Indicates whether the file is binary.
|
Boolean |
getIsLarge()
Indicates whether the file is large.
|
String |
getNewId()
The ID of the changed object on the target version.
|
String |
getNewPath()
The path on the target version to the changed object.
|
String |
getOldId()
The ID of the changed object on the base version.
|
String |
getOldPath()
The path on the base version to the changed object.
|
int |
hashCode() |
FileDiffResponse.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"oldPath","newPath","oldId","newId","areConflictsInFile","isLarge","isBinary","changes"}) public FileDiffResponse(String oldPath, String newPath, String oldId, String newId, Boolean areConflictsInFile, Boolean isLarge, Boolean isBinary, List<DiffChunk> changes)
public static FileDiffResponse.Builder builder()
Create a new builder.
public FileDiffResponse.Builder toBuilder()
public String getOldPath()
The path on the base version to the changed object.
public String getNewPath()
The path on the target version to the changed object.
public String getOldId()
The ID of the changed object on the base version.
public String getNewId()
The ID of the changed object on the target version.
public Boolean getAreConflictsInFile()
Indicates whether the changed file contains conflicts.
public Boolean getIsLarge()
Indicates whether the file is large.
public Boolean getIsBinary()
Indicates whether the file is binary.
public List<DiffChunk> getChanges()
List of changed section in the file.
public String toString()
toString
in class ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class ExplicitlySetBmcModel
public int hashCode()
hashCode
in class ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.