So I've been searching a while for the answer to this and I'm just not sure how it works.
I'm trying to make a list of BloomFilter<String>
objects.
The class definition for the BloomFilter is:
public class BloomFilter<E> implements Serializable { ...
The <E>
allows the user to pick what type of elements are going into the filter. In my case, I need strings.
Somewhere else in the program, I need 4 BloomFilter<String>
objects.
My question is: How do I initialize the following line?
private static BloomFilter<String> threadedEncrpytionFilters[] = null;
threadedEncryptionFilters = ???
This seems similar to creating a list of ArrayLists? Is that also possible?