From 8ffd4184d3debb8668b4af4ce4e5b34c5222f8a8 Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Mon, 25 Jan 2021 21:56:59 +0100 Subject: [PATCH] Makes listContains and concatenate functions public --- .../java/net/knarcraft/ffmpegconverter/utility/ListUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/knarcraft/ffmpegconverter/utility/ListUtil.java b/src/main/java/net/knarcraft/ffmpegconverter/utility/ListUtil.java index 6fd361a..c4fc8a6 100644 --- a/src/main/java/net/knarcraft/ffmpegconverter/utility/ListUtil.java +++ b/src/main/java/net/knarcraft/ffmpegconverter/utility/ListUtil.java @@ -21,7 +21,7 @@ public final class ListUtil { * @param

The type of the two lists.

* @return

A new array containing all elements from the two arrays.

*/ - static T[] concatenate(T[] listA, T[] listB) { + public static T[] concatenate(T[] listA, T[] listB) { int listALength = listA.length; int listBLength = listB.length; @SuppressWarnings("unchecked") @@ -53,7 +53,7 @@ public final class ListUtil { * @param Anything which can be stored in a list * @return True if at least one element fulfills the predicate */ - static boolean listContains(T[] list, Predicate predicate) { + public static boolean listContains(T[] list, Predicate predicate) { for (T item : list) { if (predicate.test(item)) { return true;