public final class FailureMetadataResult<T> extends Object implements MetadataResult<T>
MetadataResult
for failure results.Modifier and Type | Method and Description |
---|---|
T |
get() |
List<MetadataFailure> |
getFailures()
If
this#isSuccess is false, then a MetadataFailure instance is provided
in order to describe the error that occurred during the invocation. |
boolean |
isSuccess() |
public T get()
get
in interface MetadataResult<T>
public boolean isSuccess()
isSuccess
in interface MetadataResult<T>
public List<MetadataFailure> getFailures()
this#isSuccess
is false, then a MetadataFailure
instance is provided
in order to describe the error that occurred during the invocation.getFailures
in interface MetadataResult<T>
List
of MetadataFailure
s describing the errors that occurred during the invocation
if at least one occurred.Copyright © 2018. All rights reserved.