Record Class SessionOperations.UndoResult
java.lang.Object
java.lang.Record
io.agentscope.spring.boot.admin.service.SessionOperations.UndoResult
- Enclosing class:
- SessionOperations
public static record SessionOperations.UndoResult(String sessionId, boolean restored, int undoDepth, int redoDepth)
extends Record
Outcome of an undo/redo invocation.
-
Constructor Summary
ConstructorsConstructorDescriptionUndoResult(String sessionId, boolean restored, int undoDepth, int redoDepth) Creates an instance of aUndoResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theredoDepthrecord component.booleanrestored()Returns the value of therestoredrecord component.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theundoDepthrecord component.
-
Constructor Details
-
UndoResult
Creates an instance of aUndoResultrecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentrestored- the value for therestoredrecord componentundoDepth- the value for theundoDepthrecord componentredoDepth- the value for theredoDepthrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
restored
public boolean restored()Returns the value of therestoredrecord component.- Returns:
- the value of the
restoredrecord component
-
undoDepth
public int undoDepth()Returns the value of theundoDepthrecord component.- Returns:
- the value of the
undoDepthrecord component
-
redoDepth
public int redoDepth()Returns the value of theredoDepthrecord component.- Returns:
- the value of the
redoDepthrecord component
-