Class TupleResult


  • public class TupleResult
    extends java.lang.Object
    Used by tuple futures as internal result wrappers. Helper struct for results that saves the result number.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int num
      The number.
      protected java.lang.Object result
      The result.
    • Constructor Summary

      Constructors 
      Constructor Description
      TupleResult()
      Create a new TupleResult.
      TupleResult​(int num, java.lang.Object result)
      Create a new SequenceResult.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getNum()
      Get the num.
      java.lang.Object getResult()
      Get the result.
      void setNum​(int num)
      Set the num.
      void setResult​(java.lang.Object result)
      Set the result.
      java.lang.String toString()
      Get the string representation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • num

        protected int num
        The number.
      • result

        protected java.lang.Object result
        The result.
    • Constructor Detail

      • TupleResult

        public TupleResult()
        Create a new TupleResult.
      • TupleResult

        public TupleResult​(int num,
                           java.lang.Object result)
        Create a new SequenceResult.
    • Method Detail

      • getNum

        public int getNum()
        Get the num.
        Returns:
        The num.
      • setNum

        public void setNum​(int num)
        Set the num.
        Parameters:
        num - The num to set.
      • getResult

        public java.lang.Object getResult()
        Get the result.
        Returns:
        The result.
      • setResult

        public void setResult​(java.lang.Object result)
        Set the result.
        Parameters:
        result - The result to set.
      • toString

        public java.lang.String toString()
        Get the string representation.
        Overrides:
        toString in class java.lang.Object