public class DefaultErrorCollector<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.Object implements ErrorCollector<G,A,R>, java.lang.Iterable<ValidationError<G,A,R>>
Constructor and Description |
---|
DefaultErrorCollector() |
Modifier and Type | Method and Description |
---|---|
void |
collect(@NotNull ValidationError<G,A,R> error)
Collect an error.
|
@NotNull java.lang.Iterable<ValidationError<G,A,R>> |
getErrors()
Get all errors.
|
@NotNull java.util.Iterator<ValidationError<G,A,R>> |
iterator() |
public void collect(@NotNull @NotNull ValidationError<G,A,R> error)
ErrorCollector
collect
in interface ErrorCollector<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
error
- Error to collect@NotNull public @NotNull java.util.Iterator<ValidationError<G,A,R>> iterator()
iterator
in interface java.lang.Iterable<ValidationError<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>>
@NotNull public @NotNull java.lang.Iterable<ValidationError<G,A,R>> getErrors()
ErrorCollector
getErrors
in interface ErrorCollector<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>