public class HashMultimap<K,V>
extends Object
An adaptation of a map into a multimap, by mapping to a list of values.
-
Constructor Summary
Constructors
Constructs an empty multimap.
-
Method Summary
boolean
Returns whether the multimap is empty.
static void
int
Returns the total number of entries in the multimap.
-
Constructor Details
-
HashMultimap
public HashMultimap()
Constructs an empty multimap.
-
Method Details
-
size
public int size()
Returns the total number of entries in the multimap.
-
isEmpty
public boolean isEmpty()
Returns whether the multimap is empty.
-
-
main
public static void main(String[] args)