Gridarta Editor
net.sf.gridarta.model.validation.DefaultErrorCollector< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R > Class Template Reference

Simple error collector that just collects the error in a collection for later retrieval through iteration. More...

+ Inheritance diagram for net.sf.gridarta.model.validation.DefaultErrorCollector< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
+ Collaboration diagram for net.sf.gridarta.model.validation.DefaultErrorCollector< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:

Public Member Functions

void collect (@NotNull final ValidationError< G, A, R > error)
 
Iterable< ValidationError< G, A, R > > getErrors ()
 
Iterator< ValidationError< G, A, R > > iterator ()
 
- Public Member Functions inherited from net.sf.gridarta.model.validation.ErrorCollector< G, A, R >
void collect ( @NotNull ValidationError< G, A, R > error)
 Collect an error. More...
 
Iterable< ValidationError< G, A, R > > getErrors ()
 Get all errors. More...
 

Private Attributes

final List< ValidationError< G, A, R > > errors = new ArrayList<>()
 Errors. More...
 
boolean sorted = true
 Whether errors is sorted. More...
 

Static Private Attributes

static final long serialVersionUID = 1L
 The serial version UID. More...
 

Detailed Description

Simple error collector that just collects the error in a collection for later retrieval through iteration.

Author
Christian Hujer

Definition at line 37 of file DefaultErrorCollector.java.

Member Function Documentation

◆ collect()

◆ getErrors()

Iterable<ValidationError<G, A, R> > net.sf.gridarta.model.validation.DefaultErrorCollector< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getErrors ( )

Definition at line 73 of file DefaultErrorCollector.java.

◆ iterator()

Member Data Documentation

◆ errors

◆ serialVersionUID

final long net.sf.gridarta.model.validation.DefaultErrorCollector< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.serialVersionUID = 1L
staticprivate

The serial version UID.

Definition at line 42 of file DefaultErrorCollector.java.

◆ sorted


The documentation for this class was generated from the following file: