From 3876e8f71e7559198ddba7bdff4b325b142eadcd Mon Sep 17 00:00:00 2001 From: KEZEL BENOIT p1907091 Date: Wed, 1 Apr 2020 15:59:56 +0200 Subject: [PATCH] Input package and interface creation, creation of enumerators Presentation, Order, Gender --- src/input/Gender.java | 6 ++++++ src/input/Input.java | 6 ++++++ src/input/Order.java | 6 ++++++ src/input/Presentation.java | 7 +++++++ 4 files changed, 25 insertions(+) create mode 100644 src/input/Gender.java create mode 100644 src/input/Input.java create mode 100644 src/input/Order.java create mode 100644 src/input/Presentation.java diff --git a/src/input/Gender.java b/src/input/Gender.java new file mode 100644 index 0000000..4d5b1e0 --- /dev/null +++ b/src/input/Gender.java @@ -0,0 +1,6 @@ +package input; + +public enum Gender { + MEN, + WOMEN; +} diff --git a/src/input/Input.java b/src/input/Input.java new file mode 100644 index 0000000..347ac04 --- /dev/null +++ b/src/input/Input.java @@ -0,0 +1,6 @@ +package input; + +public interface Input { + public String toString(Presentation presentation, Order order); + public boolean research(String search); +} diff --git a/src/input/Order.java b/src/input/Order.java new file mode 100644 index 0000000..0bd2cea --- /dev/null +++ b/src/input/Order.java @@ -0,0 +1,6 @@ +package input; + +public enum Order { + LAST_FIRST, + FIRST_LAST; +} diff --git a/src/input/Presentation.java b/src/input/Presentation.java new file mode 100644 index 0000000..ed482d3 --- /dev/null +++ b/src/input/Presentation.java @@ -0,0 +1,7 @@ +package input; + +public enum Presentation { + SHORT, + SIMPLE, + COMPLETE; +}