Package com.offbynull.coroutines.user
Class SerializedState.VersionedFrame
java.lang.Object
com.offbynull.coroutines.user.SerializedState.VersionedFrame
- All Implemented Interfaces:
Serializable
- Enclosing class:
SerializedState
Collection of
SerializedState.Frames that are for different versions of the same method and continuation point combination.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstruct aSerializedState.VersionedFramefrom a single frame.VersionedFrame(SerializedState.Frame[] frames) Construct aSerializedState.VersionedFramefrom multiple frame. -
Method Summary
Modifier and TypeMethodDescriptionGet frames.(package private) void
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
frames
-
-
Constructor Details
-
VersionedFrame
Construct aSerializedState.VersionedFramefrom a single frame.- Parameters:
frame- frame- Throws:
NullPointerException- if any argument isnull
-
VersionedFrame
Construct aSerializedState.VersionedFramefrom multiple frame.- Parameters:
frames- frames- Throws:
NullPointerException- if any argument isnullor containsnullIllegalArgumentException- ifframesis empty, or all the frames inframesaren't for the same class name, or ifframescontains duplicates
-
-
Method Details
-
getFrames
Get frames.- Returns:
- frames
-
validateState
void validateState()
-