public final class ImmutableMetadataResult<T> extends Object implements MetadataResult<T>
MetadataResult| Modifier and Type | Method and Description |
|---|---|
T |
get() |
Optional<MetadataFailure> |
getFailure()
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 Optional<MetadataFailure> getFailure()
this#isSuccess is false, then a MetadataFailure instance is provided
in order to describe the error that occurred during the invocation.getFailure in interface MetadataResult<T>List of MetadataFailures describing the errors that occurred during the invocation
if at least one occurred.Copyright © 2016 MuleSoft, Inc.. All rights reserved.