Hello Frank,

Frank Schönheit - Sun Microsystems Germany wrote:
Hi,

being in need of some generic map interface in UNO, I suggest
introducing the attached css.container.XMap interface in module udkapi.

The interface is roughly designed after the Map class from the Java
Collections Framework.

Any comments on the suggested design are welcome ...

I wonder if Size, IsEmpty, and KeySet really should be attributes.
They are marked as readonly so I half expect them to be also immutable. Especially so as they are listed below KeyType and ValueType which probably are immutable.

Is this how attributes can or should be used?



Since the interface is a little bit bigger than the canonical
"has/insert/remove" triple, I also thought about introducing a
css.container.Map default implementation, which as constructor arguments
takes a key and a value type, and defaults certain behavior. This would
include the definition of key equality, the fact that no NULL keys are
allowed (while NULL values are), and perhaps more. Would that make sense?

Ciao
Frank



------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Best regards,
Andre

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to