Package jadex.commons.future
Class TupleResult
- java.lang.Object
-
- jadex.commons.future.TupleResult
-
public class TupleResult extends java.lang.ObjectUsed by tuple futures as internal result wrappers. Helper struct for results that saves the result number.
-
-
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 intgetNum()Get the num.java.lang.ObjectgetResult()Get the result.voidsetNum(int num)Set the num.voidsetResult(java.lang.Object result)Set the result.java.lang.StringtoString()Get the string representation.
-
-
-
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:
toStringin classjava.lang.Object
-
-