Package jadex.commons.future
Class TupleResult
- java.lang.Object
-
- jadex.commons.future.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.
-
-
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.
-
-
-
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 classjava.lang.Object
-
-