Package com.offbynull.coroutines.user
Class SerializedState.VersionedFrame
- java.lang.Object
-
- com.offbynull.coroutines.user.SerializedState.VersionedFrame
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- SerializedState
public static final class SerializedState.VersionedFrame extends java.lang.Object implements java.io.Serializable
Collection ofSerializedState.Frame
s that are for different versions of the same method and continuation point combination.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private SerializedState.Frame[]
frames
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description VersionedFrame(SerializedState.Frame frame)
Construct aSerializedState.VersionedFrame
from a single frame.VersionedFrame(SerializedState.Frame[] frames)
Construct aSerializedState.VersionedFrame
from multiple frame.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SerializedState.Frame[]
getFrames()
Get frames.(package private) void
validateState()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
frames
private final SerializedState.Frame[] frames
-
-
Constructor Detail
-
VersionedFrame
public VersionedFrame(SerializedState.Frame frame)
Construct aSerializedState.VersionedFrame
from a single frame.- Parameters:
frame
- frame- Throws:
java.lang.NullPointerException
- if any argument isnull
-
VersionedFrame
public VersionedFrame(SerializedState.Frame[] frames)
Construct aSerializedState.VersionedFrame
from multiple frame.- Parameters:
frames
- frames- Throws:
java.lang.NullPointerException
- if any argument isnull
or containsnull
java.lang.IllegalArgumentException
- ifframes
is empty, or all the frames inframes
aren't for the same class name, or ifframes
contains duplicates
-
-
Method Detail
-
getFrames
public SerializedState.Frame[] getFrames()
Get frames.- Returns:
- frames
-
validateState
void validateState()
-
-