guava - Importing ArrayListMultimap into IntelliJ - Java -
i imported guava multimap library intellij when try use multimap interface
multimap<string, blockingqueue<string>> addblock = new arraylistmultimap.create();
the create not activate. coloured in red.
this import statement used
import com.google.common.collect.arraylistmultimap; import com.google.common.collect.multimap;
it's static factory method, not constructor. remove new
keyword:
multimap<string, blockingqueue<string>> addblock = arraylistmultimap.create();
Comments
Post a Comment