From f1a1505e6c2a514305ca79a4fa39f95a96934fa5 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Sat, 9 Sep 2023 21:47:30 +0200 Subject: [PATCH] Created the LicenseMeta object --- .../de/licenseapi/entities/LicenseMeta.java | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/main/java/de/licenseapi/entities/LicenseMeta.java diff --git a/src/main/java/de/licenseapi/entities/LicenseMeta.java b/src/main/java/de/licenseapi/entities/LicenseMeta.java new file mode 100644 index 0000000..4dcdac5 --- /dev/null +++ b/src/main/java/de/licenseapi/entities/LicenseMeta.java @@ -0,0 +1,40 @@ +package de.licenseapi.entities; + +public class LicenseMeta { + + private final String key; + private final String value; + + /** + * Constructor of the {@link LicenseMeta} class. It contains the key and the value of the meta. + *

+ * You can define the meta in the project dashboard. + *

+ * + * @param key The key of the meta information + * @param value The value of the meta information + */ + public LicenseMeta(String key, String value) { + this.key = key; + this.value = value; + } + + /** + * Gets the key of the meta information + * + * @return the key of the meta information + */ + public String getKey() { + return key; + } + + /** + * Gets the value of the meta information + * + * @return the value of the meta information + */ + public String getValue() { + return value; + } + +}