|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.generic.util.MapReverse
This class contains a method to reverse a map. The operation is only possible if all the values are distinct.
| Method Summary | |
static java.util.Map |
reverse(java.util.Map map)
Reverses a map. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static final java.util.Map reverse(java.util.Map map)
throws MapReverseNotPossibleException
Please note that reversing a map is only possible if all of the values are unique (and not just the keys). If the values are not unique, the method will throw an exception.
map - the Map to reverse; may not be null.
MapReverseNotPossibleException, - if the values of the input map
are not distinct.
InvalidArgumentException, - if argument is null.
MapReverseNotPossibleException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||