Record Class HistoryRewindFilePreview
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.HistoryRewindFilePreview
@Generated("copilot-sdk-codegen")
public record HistoryRewindFilePreview(String path, HistoryRewindChangeType changeType, Long linesAdded, Long linesRemoved)
extends Record
A file that a conversation-and-files rewind would restore.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionHistoryRewindFilePreview(String path, HistoryRewindChangeType changeType, Long linesAdded, Long linesRemoved) Creates an instance of aHistoryRewindFilePreviewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechangeTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelinesAddedrecord component.Returns the value of thelinesRemovedrecord component.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HistoryRewindFilePreview
public HistoryRewindFilePreview(String path, HistoryRewindChangeType changeType, Long linesAdded, Long linesRemoved) Creates an instance of aHistoryRewindFilePreviewrecord class.- Parameters:
path- the value for thepathrecord componentchangeType- the value for thechangeTyperecord componentlinesAdded- the value for thelinesAddedrecord componentlinesRemoved- the value for thelinesRemovedrecord component
-
-
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). -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
changeType
Returns the value of thechangeTyperecord component.- Returns:
- the value of the
changeTyperecord component
-
linesAdded
Returns the value of thelinesAddedrecord component.- Returns:
- the value of the
linesAddedrecord component
-
linesRemoved
Returns the value of thelinesRemovedrecord component.- Returns:
- the value of the
linesRemovedrecord component
-