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.Frame
s that are for different versions of the same method and continuation point combination.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstruct aSerializedState.VersionedFrame
from a single frame.VersionedFrame
(SerializedState.Frame[] frames) Construct aSerializedState.VersionedFrame
from 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.VersionedFrame
from a single frame.- Parameters:
frame
- frame- Throws:
NullPointerException
- if any argument isnull
-
VersionedFrame
Construct aSerializedState.VersionedFrame
from multiple frame.- Parameters:
frames
- frames- Throws:
NullPointerException
- if any argument isnull
or containsnull
IllegalArgumentException
- ifframes
is empty, or all the frames inframes
aren't for the same class name, or ifframes
contains duplicates
-
-
Method Details
-
getFrames
Get frames.- Returns:
- frames
-
validateState
void validateState()
-