Package com.offbynull.coroutines.user
Class SerializedState.Data
java.lang.Object
com.offbynull.coroutines.user.SerializedState.Data
- All Implemented Interfaces:
Serializable
- Enclosing class:
SerializedState
Data bundle.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int[]private double[]private float[]private int[]private long[]private Object[]private static final long -
Constructor Summary
ConstructorsConstructorDescriptionData(int[] ints, float[] floats, long[] longs, double[] doubles, Object[] objects, int[] continuationIndexes) Construct aSerializedState.Dataobject. -
Method Summary
Modifier and TypeMethodDescriptionint[]Get positions within objects array where the object pointed to the originalContinuationfor the coroutine.double[]Get double values.float[]Get float values.int[]getInts()Get int values.long[]getLongs()Get long values.Object[]Get object values.(package private) void
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
ints
private int[] ints -
floats
private float[] floats -
longs
private long[] longs -
doubles
private double[] doubles -
objects
-
continuationIndexes
private int[] continuationIndexes
-
-
Constructor Details
-
Data
public Data(int[] ints, float[] floats, long[] longs, double[] doubles, Object[] objects, int[] continuationIndexes) Construct aSerializedState.Dataobject.- Parameters:
ints- int valuesfloats- float valueslongs- long valuesdoubles- double valuesobjects- object valuescontinuationIndexes- position withinobjectswhere the object pointed to the originalContinuationfor the coroutine- Throws:
NullPointerException- if any argument isnullIllegalArgumentException- ifcontinuationIndexespoints to out of bounds indexes withinobjectsor if ifcontinuationIndexespoints to non-null indexes withinobjects
-
-
Method Details
-
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
Get object values.- Returns:
- object values
-
getContinuationIndexes
public int[] getContinuationIndexes()Get positions within objects array where the object pointed to the originalContinuationfor the coroutine.- Returns:
- positions within
getObjects()that point to the originalContinuation
-
validateState
void validateState()
-