public static < K , V > Multimap < K , V > constrainedMultimap ( Multimap < K , V > multimap , MapConstraint < ? super K , ? super V > constraint ) { return new ConstrainedMultimap < K , V > ( multimap , constraint ) ; }
Returns a constrained view of the specified multimap using the specified constraint . Any operations that add new mappings will call the provided constraint . However this method does not verify that existing mappings satisfy the constraint .