ResultPair<OUT_VALUE> Clase

Parámetros de tipo

OUT_VALUE

Tipo de valor 'Right'.

public class ResultPair<OUT_VALUE>
extends Pair<java.lang.Boolean,OUT_VALUE>

Par de resultados.

Resumen del constructor

Constructor Description
ResultPair(Boolean withResult, OUT_VALUE withValue)

Crea una nueva instancia inmutable de un par de resultados.

Resumen del método

Modificador y tipo Método y descripción
java.lang.Boolean result()

Obtiene el resultado.

OUT_VALUE value()

Obtiene el valor .

Métodos heredados de Pair

Métodos heredados de 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

Detalles del constructor

ResultPair

public ResultPair(Boolean withResult, OUT_VALUE withValue)

Crea una nueva instancia inmutable de resultPair.

Parámetros:

withResult - Resultado del valor ResultPair.
withValue - Valor.

Detalles del método

result

public Boolean result()

Obtiene el resultado.

Devoluciones:

True si se ejecuta correctamente.

value

public OUT_VALUE value()

Obtiene el valor .

Devoluciones:

Valor de tipo OUT_VALUE.

Se aplica a