为有限的定义域提供大小固定的映射
TotalMap 提供了类似 EnumMap 的单射。
TotalMap
EnumMap
作为键者需实现 MapKey,可使用 GenericMapKey 自动实现。
MapKey
GenericMapKey
Generic