Refactor package structure some more.

This commit is contained in:
Manuel Friedli 2020-10-04 23:04:23 +02:00
parent afd05f6871
commit 88d86ed186
16 changed files with 25 additions and 24 deletions

View file

@ -1,10 +1,11 @@
package ch.fritteli.labyrinth; package ch.fritteli.labyrinth;
import ch.fritteli.labyrinth.model.Labyrinth;
import ch.fritteli.labyrinth.renderer.html.HTMLRenderer; import ch.fritteli.labyrinth.renderer.html.HTMLRenderer;
import ch.fritteli.labyrinth.renderer.htmlfile.HTMLFileRenderer; import ch.fritteli.labyrinth.renderer.htmlfile.HTMLFileRenderer;
import ch.fritteli.labyrinth.renderer.pdffile.PDFFileRenderer; import ch.fritteli.labyrinth.renderer.pdffile.PDFFileRenderer;
import ch.fritteli.labyrinth.renderer.textfile.TextFileRenderer;
import ch.fritteli.labyrinth.renderer.text.TextRenderer; import ch.fritteli.labyrinth.renderer.text.TextRenderer;
import ch.fritteli.labyrinth.renderer.textfile.TextFileRenderer;
import lombok.NonNull; import lombok.NonNull;
import java.nio.file.Path; import java.nio.file.Path;

View file

@ -1,4 +1,4 @@
package ch.fritteli.labyrinth; package ch.fritteli.labyrinth.model;
import lombok.NonNull; import lombok.NonNull;

View file

@ -1,4 +1,4 @@
package ch.fritteli.labyrinth; package ch.fritteli.labyrinth.model;
import io.vavr.control.Option; import io.vavr.control.Option;
import lombok.Getter; import lombok.Getter;

View file

@ -1,4 +1,4 @@
package ch.fritteli.labyrinth; package ch.fritteli.labyrinth.model;
import lombok.Value; import lombok.Value;
import lombok.With; import lombok.With;

View file

@ -1,4 +1,4 @@
package ch.fritteli.labyrinth; package ch.fritteli.labyrinth.model;
import io.vavr.collection.Stream; import io.vavr.collection.Stream;
import io.vavr.control.Option; import io.vavr.control.Option;

View file

@ -1,4 +1,4 @@
package ch.fritteli.labyrinth; package ch.fritteli.labyrinth.model;
import io.vavr.collection.Stream; import io.vavr.collection.Stream;
import lombok.NonNull; import lombok.NonNull;

View file

@ -1,6 +1,6 @@
package ch.fritteli.labyrinth.renderer; package ch.fritteli.labyrinth.renderer;
import ch.fritteli.labyrinth.Labyrinth; import ch.fritteli.labyrinth.model.Labyrinth;
import lombok.NonNull; import lombok.NonNull;
public interface Renderer<T> { public interface Renderer<T> {

View file

@ -1,8 +1,8 @@
package ch.fritteli.labyrinth.renderer.html; package ch.fritteli.labyrinth.renderer.html;
import ch.fritteli.labyrinth.Direction; import ch.fritteli.labyrinth.model.Direction;
import ch.fritteli.labyrinth.Labyrinth; import ch.fritteli.labyrinth.model.Labyrinth;
import ch.fritteli.labyrinth.Tile; import ch.fritteli.labyrinth.model.Tile;
import io.vavr.collection.HashSet; import io.vavr.collection.HashSet;
import io.vavr.collection.Set; import io.vavr.collection.Set;
import lombok.AccessLevel; import lombok.AccessLevel;

View file

@ -1,6 +1,6 @@
package ch.fritteli.labyrinth.renderer.html; package ch.fritteli.labyrinth.renderer.html;
import ch.fritteli.labyrinth.Labyrinth; import ch.fritteli.labyrinth.model.Labyrinth;
import ch.fritteli.labyrinth.renderer.Renderer; import ch.fritteli.labyrinth.renderer.Renderer;
import lombok.NonNull; import lombok.NonNull;

View file

@ -1,6 +1,6 @@
package ch.fritteli.labyrinth.renderer.htmlfile; package ch.fritteli.labyrinth.renderer.htmlfile;
import ch.fritteli.labyrinth.Labyrinth; import ch.fritteli.labyrinth.model.Labyrinth;
import ch.fritteli.labyrinth.renderer.Renderer; import ch.fritteli.labyrinth.renderer.Renderer;
import ch.fritteli.labyrinth.renderer.html.HTMLRenderer; import ch.fritteli.labyrinth.renderer.html.HTMLRenderer;
import lombok.NonNull; import lombok.NonNull;

View file

@ -1,9 +1,9 @@
package ch.fritteli.labyrinth.renderer.pdf; package ch.fritteli.labyrinth.renderer.pdf;
import ch.fritteli.labyrinth.Direction; import ch.fritteli.labyrinth.model.Direction;
import ch.fritteli.labyrinth.Labyrinth; import ch.fritteli.labyrinth.model.Labyrinth;
import ch.fritteli.labyrinth.Position; import ch.fritteli.labyrinth.model.Position;
import ch.fritteli.labyrinth.Tile; import ch.fritteli.labyrinth.model.Tile;
import lombok.NonNull; import lombok.NonNull;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import lombok.Value; import lombok.Value;

View file

@ -1,6 +1,6 @@
package ch.fritteli.labyrinth.renderer.pdf; package ch.fritteli.labyrinth.renderer.pdf;
import ch.fritteli.labyrinth.Labyrinth; import ch.fritteli.labyrinth.model.Labyrinth;
import ch.fritteli.labyrinth.renderer.Renderer; import ch.fritteli.labyrinth.renderer.Renderer;
import lombok.NonNull; import lombok.NonNull;

View file

@ -1,8 +1,8 @@
package ch.fritteli.labyrinth.renderer.pdffile; package ch.fritteli.labyrinth.renderer.pdffile;
import ch.fritteli.labyrinth.Labyrinth; import ch.fritteli.labyrinth.model.Labyrinth;
import ch.fritteli.labyrinth.renderer.pdf.PDFRenderer;
import ch.fritteli.labyrinth.renderer.Renderer; import ch.fritteli.labyrinth.renderer.Renderer;
import ch.fritteli.labyrinth.renderer.pdf.PDFRenderer;
import lombok.NonNull; import lombok.NonNull;
import java.io.IOException; import java.io.IOException;

View file

@ -1,8 +1,8 @@
package ch.fritteli.labyrinth.renderer.text; package ch.fritteli.labyrinth.renderer.text;
import ch.fritteli.labyrinth.Direction; import ch.fritteli.labyrinth.model.Direction;
import ch.fritteli.labyrinth.Labyrinth; import ch.fritteli.labyrinth.model.Labyrinth;
import ch.fritteli.labyrinth.Tile; import ch.fritteli.labyrinth.model.Tile;
import lombok.AccessLevel; import lombok.AccessLevel;
import lombok.NonNull; import lombok.NonNull;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;

View file

@ -1,6 +1,6 @@
package ch.fritteli.labyrinth.renderer.text; package ch.fritteli.labyrinth.renderer.text;
import ch.fritteli.labyrinth.Labyrinth; import ch.fritteli.labyrinth.model.Labyrinth;
import ch.fritteli.labyrinth.renderer.Renderer; import ch.fritteli.labyrinth.renderer.Renderer;
import lombok.NonNull; import lombok.NonNull;

View file

@ -1,6 +1,6 @@
package ch.fritteli.labyrinth.renderer.textfile; package ch.fritteli.labyrinth.renderer.textfile;
import ch.fritteli.labyrinth.Labyrinth; import ch.fritteli.labyrinth.model.Labyrinth;
import ch.fritteli.labyrinth.renderer.Renderer; import ch.fritteli.labyrinth.renderer.Renderer;
import ch.fritteli.labyrinth.renderer.text.TextRenderer; import ch.fritteli.labyrinth.renderer.text.TextRenderer;
import io.vavr.collection.List; import io.vavr.collection.List;