package de.prob2.ui.states;

import java.util.Objects;

public class StateItem<T> {
	private final T contents;
	private final boolean errored;
	
	public StateItem(final T contents, final boolean errored) {
		super();
		
		Objects.requireNonNull(contents);
		
		this.contents = contents;
		this.errored = errored;
	}
	
	public T getContents() {
		return this.contents;
	}
	
	public boolean isErrored() {
		return this.errored;
	}
}

@@ -422,10 +422,174 @@
 red;%0A%09%7D%0A
+%09%0A%09@Override%0A%09public String toString() %7B%0A%09%09return String.format(%22%25s%7Bcontents=%25s, errored=%25s%7D%22, this.getClass().getName(), this.getContents(), this.isErrored());%0A%09%7D%0A
 %7D%0A

Add custom toString() to StateItem