ConfigMe icon indicating copy to clipboard operation
ConfigMe copied to clipboard

Create MapPropertyType, change MapProperty to use it

Open ljacqu opened this issue 1 year ago • 0 comments

To do

  • Introduce a MapPropertyType, similar to ListPropertyType etc.
    • Make sure it can be created in different ways as in CollectionPropertyType: allow to supply a custom PropertyType<Map<String, …>> but also make it possible to just specify the PropertyType<V> valueType
    • Note: The keys of a Map are always String. This should not be overridable!
  • Add unit tests

Notes

The result map property type and map property should be similar to SetPropertyType and SetProperty: make sure the entries are kept in insertion order (i.e. use LinkedHashMap) and that the default value / returned values are immutable.

ljacqu avatar Oct 08 '24 18:10 ljacqu