public class LoaderValues extends Object implements ValidatedValues
| Modifier and Type | Field and Description |
|---|---|
static List<ValidatedValue> |
EMPTY_PROP_VALUE_LIST |
| Constructor and Description |
|---|
LoaderValues(Loader loader)
A constructor when there is no problem, but there were no values loaded.
|
LoaderValues(Loader loader,
List<ValidatedValue> inValues,
ProblemList<Problem> problems) |
LoaderValues(Loader loader,
Problem problem)
A constructor when there is just a problem to report.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getExplicitValue(Property<T> prop)
A linear search for the Property in the values loaded by this loader.
|
Loader |
getLoader() |
ProblemList<Problem> |
getProblems()
Returns loader and value problems, if any.
|
<T> T |
getValue(Property<T> prop)
The effective value, similar to Property.getValue, but specifically for
the context of this ValueMap.
|
List<ValidatedValue> |
getValues() |
boolean |
isExplicitlySet(Property<?> prop)
A linear search for the Property in the values loaded by this loader.
|
public static final List<ValidatedValue> EMPTY_PROP_VALUE_LIST
public LoaderValues(Loader loader, Problem problem)
loader - problem - public LoaderValues(Loader loader)
loader - public LoaderValues(Loader loader, List<ValidatedValue> inValues, ProblemList<Problem> problems)
public Loader getLoader()
public List<ValidatedValue> getValues()
public <T> T getExplicitValue(Property<T> prop)
getExplicitValue in interface ValidatedValuesT - The return type of the Property.prop - public <T> T getValue(Property<T> prop)
ValidatedValuesgetValue in interface ValidatedValuesT - The return type of the Property.prop - The property to get the value for.public boolean isExplicitlySet(Property<?> prop)
isExplicitlySet in interface ValidatedValuesprop - public ProblemList<Problem> getProblems()
Copyright © 2017. All rights reserved.