public class ValidatedValue<T> extends Object
| Constructor and Description |
|---|
ValidatedValue(Property<T> prop,
T value)
New instance w/o Problems
Problems can be added later.
|
ValidatedValue(Property<T> prop,
T value,
ProblemList<ValueProblem> inIssues)
Construct w/ a known set of problems.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProblem(ValueProblem problem) |
boolean |
equals(Object obj) |
ProblemList<Problem> |
getProblems()
Returns an unmodifiable list of Problems.
|
Property<T> |
getProperty() |
T |
getValue() |
int |
hashCode() |
boolean |
hasProblems() |
public ValidatedValue(Property<T> prop, T value)
prop - value - public ValidatedValue(Property<T> prop, T value, ProblemList<ValueProblem> inIssues)
prop - value - inIssues - public T getValue()
public void addProblem(ValueProblem problem)
public boolean hasProblems()
public ProblemList<Problem> getProblems()
Copyright © 2017. All rights reserved.