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.SerializableData bundle.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private int[]continuationIndexesprivate double[]doublesprivate float[]floatsprivate int[]intsprivate long[]longsprivate java.lang.Object[]objectsprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description Data(int[] ints, float[] floats, long[] longs, double[] doubles, java.lang.Object[] objects, int[] continuationIndexes)Construct aSerializedState.Dataobject.
-
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 originalContinuationfor 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) voidvalidateState()
-
-
-
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.Dataobject.- Parameters:
ints- int valuesfloats- float valueslongs- long valuesdoubles- double valuesobjects- object valuescontinuationIndexes- position withinobjectswhere the object pointed to the originalContinuationfor the coroutine- Throws:
java.lang.NullPointerException- if any argument isnulljava.lang.IllegalArgumentException- ifcontinuationIndexespoints to out of bounds indexes withinobjectsor if ifcontinuationIndexespoints 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 originalContinuationfor the coroutine.- Returns:
- positions within
getObjects()that point to the originalContinuation
-
validateState
void validateState()
-
-