ResultPair<OUT_VALUE> Class
- java.
lang. Object - com.
microsoft. bot. schema. Pair<L,R> - com.
microsoft. bot. schema. ResultPair<OUT_VALUE>
- com.
- com.
Type Parameters
- OUT_VALUE
Type of 'Right' value.
public class ResultPair<OUT_VALUE>
extends Pair<java.lang.Boolean,OUT_VALUE>
Result pair.
Constructor Summary
| Constructor | Description |
|---|---|
| ResultPair(Boolean withResult, OUT_VALUE withValue) |
Creates a new immutable instance of a Result |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.Boolean |
result()
Gets the result. |
| OUT_VALUE |
value()
Gets the value. |
Methods inherited from Pair
Methods inherited from java.lang.Object
Constructor Details
ResultPair
public ResultPair(Boolean withResult, OUT_VALUE withValue)
Creates a new immutable instance of a ResultPair.
Parameters:
Method Details
result
public Boolean result()
Gets the result.
Returns:
value
public OUT_VALUE value()
Gets the value.
Returns: