From e5b26f4567a0f7de908836fd24b0282904e40961 Mon Sep 17 00:00:00 2001 From: Takhsin Saraira Date: Mon, 16 Oct 2023 16:23:23 +0300 Subject: [PATCH] 1.1.0 --- build.gradle | 4 ++-- src/main/java/io/github/mrsaraira/constants/Constants.java | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index bd09244..771809d 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ plugins { } group = 'io.github.mrsaraira' -version = '1.0.0' +version = '1.1.0' java { sourceCompatibility = JavaVersion.VERSION_11 @@ -46,7 +46,7 @@ publishing { pom { name = 'constant-containers' - description = 'Flexible generic data structure for storing immutable constant values' + description = 'Flexible generic data structure for storing immutable constant values and supports complex relations' url = 'https://github.com/mrsaraira/constant-containers.git' licenses { diff --git a/src/main/java/io/github/mrsaraira/constants/Constants.java b/src/main/java/io/github/mrsaraira/constants/Constants.java index 518b35f..4480a9d 100644 --- a/src/main/java/io/github/mrsaraira/constants/Constants.java +++ b/src/main/java/io/github/mrsaraira/constants/Constants.java @@ -51,6 +51,7 @@ public static RelationConstant of(@NonNull L value, @NonNull R... r * Create a {@link RelationConstant} with its relations stored in supplied collection. * * @param value key value + * @param collectionSupplier collection supplier * @param relationValues relation values * @param value type * @param relation values type @@ -66,8 +67,9 @@ public static RelationConstant of(@NonNull Supplier values type * @return constants array */ @@ -82,6 +84,7 @@ public static Constant[] concat(@NonNull T... values) { /** * Concatenate relation constants to array. * + * @param relationConstants relation constants * @param constant value type * @param relation constants value type * @param array of relation constants @@ -151,6 +154,7 @@ public static boolean anyValue(T value, @NonNull Collection> con * @param value value to match * @param containers containers to match * @param values type + * @param constant container with constant values type T * @return true - if any container has a constant value equal to value parameter */ @SafeVarargs