T - diagnosis class stored in this diagnostics instance.public class DiagnosticsGeneric<T> extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<T> |
errors
List of error diagnoses.
|
protected java.util.List<T> |
warnings
List of warning diagnoses.
|
| Constructor and Description |
|---|
DiagnosticsGeneric() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(DiagnosticsGeneric<T> diagnostics)
Add all errors/warnings from supplied object to this one.
|
void |
addError(T d)
Add errors diagnosis to the collection.
|
void |
addWarning(T d)
Add warning diagnosis to the collection.
|
java.util.List<T> |
getErrors()
Returns unmodifiable list of error diagnoses.
|
java.util.List<T> |
getWarnings()
Returns unmodifiable list of warning diagnoses.
|
boolean |
hasErrors()
Does collection have an error diagnosis.
|
boolean |
hasWarnings()
Does collection have a warning diagnosis.
|
void |
reset()
Resets the collection of errors and warnings.
|
public DiagnosticsGeneric()
public void reset()
public boolean hasErrors()
public boolean hasWarnings()
public void addAll(DiagnosticsGeneric<T> diagnostics)
diagnostics - other diagnostics with errors/warningspublic void addError(T d)
d - error diagnosispublic void addWarning(T d)
d - warning diagnosispublic java.util.List<T> getErrors()
public java.util.List<T> getWarnings()
Copyright © 2011–2023. All rights reserved.