This annotation indicates that the annotated java.util.Map attribute (descendant interfaces or implementors are also allowed) is a uniform map. This forces the discovered key and optionally the discovered value class to be used as a uniform class even when uniformity is not guaranteed in compile-time.
Attributes:
Attribute |
Type |
Default value |
Description |
uniformKey |
boolean |
true |
True means that the map has uniform keys. False means that no uniform key class should be used, even if it can be determined.
|
|
keyType |
Class |
special |
The uniform key class to be used (overrides the discovered type if it would not cause a compile error). If unspecified, then the determined type is used, even if it is not a final class.
|
|
uniformValue |
boolean |
special |
True means that the map has uniform keys and values. False means that no uniform value class should be used, even if it can be determined. If unspecified, then the generator attempts to find the uniform value type with normal rules. |
|
valueType |
Class |
special |
The uniform value class to be used (overrides the discovered type if it would not cause a compile error). If no uniform key class can be determined and it is not specified, then this is ignored as value alone cannot be uniform with non-uniform keys. If unspecified and uniformValue is true, then the determined type is used even if it is not a final class.
|
|