Record Class WorkspaceDiffContents
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.WorkspaceDiffContents
@Generated("copilot-sdk-codegen")
public record WorkspaceDiffContents(String before, String after)
extends Record
Complete text used to generate one session diff. These are display contents, with the same text decoding as the patch, not a file-restore contract.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionWorkspaceDiffContents(String before, String after) Creates an instance of aWorkspaceDiffContentsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionafter()Returns the value of theafterrecord component.before()Returns the value of thebeforerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WorkspaceDiffContents
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
before
Returns the value of thebeforerecord component.- Returns:
- the value of the
beforerecord component
-
after
Returns the value of theafterrecord component.- Returns:
- the value of the
afterrecord component
-