public class ResolverSetResult extends Object
ResolverSet. This class maps a set of ParameterModel
to a set of result Objects.
This classes equals(Object) and hashCode() methods have been redefined to be consistent with the result
objects. This is so that given two instances of this class you can determine if the evaluations they represent have an
equivalent outcome
Instances of this class can only be created through a ResolverSetResult.Builder obtained via newBuilder()| Modifier and Type | Class and Description |
|---|---|
static class |
ResolverSetResult.Builder
A builder for creating instances of
ResolverSetResult. |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
asMap() |
boolean |
equals(Object obj)
Defines equivalence by comparing the values in both objects.
|
Object |
get(String parameterName)
Returns the value associated with the
ParameterModel of the given parameterName |
int |
hashCode()
A hashCode calculated based on the results
|
static ResolverSetResult.Builder |
newBuilder()
Creates a new
ResolverSetResult.Builder instance. |
public static ResolverSetResult.Builder newBuilder()
ResolverSetResult.Builder instance. You should use a new builder per each instance you want to createResolverSetResult.Builderpublic Object get(String parameterName)
ParameterModel of the given parameterNameparameterName - the name of the ParameterModel which value you seekparameterName or null if no such association existspublic boolean equals(Object obj)
ParameterModel. Values will be tested for equality using their own
implementation of Object.equals(Object). For the case of a null value, equality requires the other one to be
null as well.
This implementation fails fast. Evaluation is finished at the first non equal value, returning falseCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.