Package com.offbynull.coroutines.user
Class SerializedState.Data
- java.lang.Object
-
- com.offbynull.coroutines.user.SerializedState.Data
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- SerializedState
public static final class SerializedState.Data extends java.lang.Object implements java.io.Serializable
Data bundle.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private int[]
continuationIndexes
private double[]
doubles
private float[]
floats
private int[]
ints
private long[]
longs
private java.lang.Object[]
objects
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description Data(int[] ints, float[] floats, long[] longs, double[] doubles, java.lang.Object[] objects, int[] continuationIndexes)
Construct aSerializedState.Data
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]
getContinuationIndexes()
Get positions within objects array where the object pointed to the originalContinuation
for the coroutine.double[]
getDoubles()
Get double values.float[]
getFloats()
Get float values.int[]
getInts()
Get int values.long[]
getLongs()
Get long values.java.lang.Object[]
getObjects()
Get object values.(package private) void
validateState()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
ints
private int[] ints
-
floats
private float[] floats
-
longs
private long[] longs
-
doubles
private double[] doubles
-
objects
private java.lang.Object[] objects
-
continuationIndexes
private int[] continuationIndexes
-
-
Constructor Detail
-
Data
public Data(int[] ints, float[] floats, long[] longs, double[] doubles, java.lang.Object[] objects, int[] continuationIndexes)
Construct aSerializedState.Data
object.- Parameters:
ints
- int valuesfloats
- float valueslongs
- long valuesdoubles
- double valuesobjects
- object valuescontinuationIndexes
- position withinobjects
where the object pointed to the originalContinuation
for the coroutine- Throws:
java.lang.NullPointerException
- if any argument isnull
java.lang.IllegalArgumentException
- ifcontinuationIndexes
points to out of bounds indexes withinobjects
or if ifcontinuationIndexes
points to non-null indexes withinobjects
-
-
Method Detail
-
getInts
public int[] getInts()
Get int values.- Returns:
- int values
-
getFloats
public float[] getFloats()
Get float values.- Returns:
- float values
-
getLongs
public long[] getLongs()
Get long values.- Returns:
- long values
-
getDoubles
public double[] getDoubles()
Get double values.- Returns:
- double values
-
getObjects
public java.lang.Object[] getObjects()
Get object values.- Returns:
- object values
-
getContinuationIndexes
public int[] getContinuationIndexes()
Get positions within objects array where the object pointed to the originalContinuation
for the coroutine.- Returns:
- positions within
getObjects()
that point to the originalContinuation
-
validateState
void validateState()
-
-