ResultPair<OUT_VALUE> Class

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 ResultPair.

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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

ResultPair

public ResultPair(Boolean withResult, OUT_VALUE withValue)

Creates a new immutable instance of a ResultPair.

Parameters:

withResult - The result of the ResultPair value.
withValue - The value.

Method Details

result

public Boolean result()

Gets the result.

Returns:

True if successful.

value

public OUT_VALUE value()

Gets the value.

Returns:

The value of type OUT_VALUE.

Applies to