public class ResolverSetResult extends Object
ResolverSet
.
This class maps a set of Parameter
to a set of result Object
s.
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<org.mule.extension.introspection.Parameter,Object> |
asMap() |
boolean |
equals(Object obj)
Defines equivalence by comparing the values in both objects.
|
Object |
get(org.mule.extension.introspection.Parameter parameter)
Returns the value associated with the given
parameter |
Object |
get(String parameterName)
Returns the value associated with the
Parameter 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.Builder
public Object get(org.mule.extension.introspection.Parameter parameter)
parameter
parameter
- a Parameter
which was registered with the builderparameter
NoSuchElementException
- if the parameter
has not been registered through the builderpublic Object get(String parameterName)
Parameter
of the given parameterName
parameterName
- the name of the Parameter
which value you seekparameterName
NoSuchElementException
- if the parameterName
has not been registered through the builderpublic boolean equals(Object obj)
Parameter
. 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 false
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.