Google.Android.PerformanceTuner.Result< T >

Represents a value returned by an operation, with the associated error code.

Summary

Details
Template Parameters
T
The type of the value contained in the result.

Public attributes

errorCode
readonly ErrorCode
The error code returned by the operation that led to this result.
value
readonly T
The value returned by the operation that led to this result.

Public functions

Result(ErrorCode errorCode, T result)
Create a result with the given value and the associated error code.

Public attributes

errorCode

readonly ErrorCode errorCode

The error code returned by the operation that led to this result.

value

readonly T value

The value returned by the operation that led to this result.

Public functions

Result

 Result(
  ErrorCode errorCode,
  T result
)

Create a result with the given value and the associated error code.

Details
Parameters
errorCode
The error code.
result
The value.