public class ResultProvider extends java.lang.Object implements IResultValueProvider
Modifier and Type | Field and Description |
---|---|
private java.util.Map<TypedCollectionResult<?>,java.util.Collection<?>> |
collectionResultMap |
private java.util.Map<TypedResult<?>,java.lang.Object> |
resultMap |
Constructor and Description |
---|
ResultProvider() |
Modifier and Type | Method and Description |
---|---|
private void |
addCollectionResult(TypedCollectionResult<?> result,
java.util.Collection<?> collection) |
private void |
addResult(TypedResult<?> result,
java.lang.Object instance) |
void |
addResults(IResult result) |
TypedResult<?> |
getResultByIdentifier(java.lang.String identifier) |
<T> java.util.Collection<T> |
getResultValue(TypedCollectionResult<T> result) |
<T> T |
getResultValue(TypedResult<T> key)
Get the value of a result.
|
private java.util.Map<TypedResult<?>,java.lang.Object> resultMap
private java.util.Map<TypedCollectionResult<?>,java.util.Collection<?>> collectionResultMap
private void addResult(TypedResult<?> result, java.lang.Object instance)
private void addCollectionResult(TypedCollectionResult<?> result, java.util.Collection<?> collection)
public void addResults(IResult result)
public <T> T getResultValue(TypedResult<T> key)
IResultValueProvider
getResultValue
in interface IResultValueProvider
key
- result to get the value forpublic TypedResult<?> getResultByIdentifier(java.lang.String identifier)
getResultByIdentifier
in interface IResultValueProvider
public <T> java.util.Collection<T> getResultValue(TypedCollectionResult<T> result)
getResultValue
in interface IResultValueProvider