Class SerializedState.Data

java.lang.Object
com.offbynull.coroutines.user.SerializedState.Data
All Implemented Interfaces:
Serializable
Enclosing class:
SerializedState

public static final class SerializedState.Data extends Object implements Serializable
Data bundle.
See Also:
  • 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

      private Object[] objects
    • continuationIndexes

      private int[] continuationIndexes
  • Constructor Details

    • Data

      public Data(int[] ints, float[] floats, long[] longs, double[] doubles, Object[] objects, int[] continuationIndexes)
      Construct a SerializedState.Data object.
      Parameters:
      ints - int values
      floats - float values
      longs - long values
      doubles - double values
      objects - object values
      continuationIndexes - position within objects where the object pointed to the original Continuation for the coroutine
      Throws:
      NullPointerException - if any argument is null
      IllegalArgumentException - if continuationIndexes points to out of bounds indexes within objects or if if continuationIndexes points to non-null indexes within objects
  • 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

      public Object[] getObjects()
      Get object values.
      Returns:
      object values
    • getContinuationIndexes

      public int[] getContinuationIndexes()
      Get positions within objects array where the object pointed to the original Continuation for the coroutine.
      Returns:
      positions within getObjects() that point to the original Continuation
    • validateState

      void validateState()