[ 
https://issues.apache.org/jira/browse/COLLECTIONS-873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Evgeny Kuvardin updated COLLECTIONS-873:
----------------------------------------
    Component/s: Set

> Create Set based on PatriciaTrie
> --------------------------------
>
>                 Key: COLLECTIONS-873
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-873
>             Project: Commons Collections
>          Issue Type: New Feature
>          Components: Set
>            Reporter: Evgeny Kuvardin
>            Priority: Major
>
> In some cases users want to use PatriciaTrie with a unique key and not worry 
> about corresponding values. Something like Set + PatriciaTrie. Something like 
> Set + PatriciaTrie
> Now in such cases they may use PatricaiTree  as follows(use the same object 
> or null as value):
>  
> {code:java}
> final Object object = new Object();
> PatriciaTrie<Object> trie = new PatriciaTrie<>();
> trie.put("SMT", null);
> trie.put("WAL", object);
> {code}
>  
> Is it a good idea to provide users with such a type of collection?
> For example:
>  
> {code:java}
> public class PatriciaTrieSet<K> implements Set<K>, Serializable{code}
>  
> If ok, I can try to make PR.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to