From 66d6b9e2f27c370ca2cc73d300858ad6f15877e8 Mon Sep 17 00:00:00 2001 From: Vadim Date: Thu, 27 Jul 2023 21:16:33 +0200 Subject: [PATCH] Make AbstractPatriciaTrie public (#407) * Make AbstractPatriciaTrie public * Added javadocs --- .../collections4/trie/AbstractPatriciaTrie.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/collections4/trie/AbstractPatriciaTrie.java b/src/main/java/org/apache/commons/collections4/trie/AbstractPatriciaTrie.java index eebb6a427c..5e8b587d20 100644 --- a/src/main/java/org/apache/commons/collections4/trie/AbstractPatriciaTrie.java +++ b/src/main/java/org/apache/commons/collections4/trie/AbstractPatriciaTrie.java @@ -34,14 +34,17 @@ import java.util.SortedMap; import org.apache.commons.collections4.OrderedMapIterator; +import org.apache.commons.collections4.Trie; /** * This class implements the base PATRICIA algorithm and everything that * is related to the {@link Map} interface. * + * @param the type of the keys in this map + * @param the type of the values in this map * @since 4.0 */ -abstract class AbstractPatriciaTrie extends AbstractBitwiseTrie { +public abstract class AbstractPatriciaTrie extends AbstractBitwiseTrie { private static final long serialVersionUID = 5155253417231339498L; @@ -66,6 +69,11 @@ abstract class AbstractPatriciaTrie extends AbstractBitwiseTrie { */ protected transient int modCount; + /** + * Constructs a new {@link Trie} using the given {@link KeyAnalyzer}. + * + * @param keyAnalyzer the {@link KeyAnalyzer} to use + */ protected AbstractPatriciaTrie(final KeyAnalyzer keyAnalyzer) { super(keyAnalyzer); }