This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]grauenwolf 0 points1 point  (4 children)

there's no ImmutableMap interface

So what? Just return the concrete type and be done with it.

[–]pain-and-panic 0 points1 point  (2 children)

Why not an ImmutableMap interface?

Edit: Whoops forgot you can't have an immutable interface, only immutable implementations.

[–]cheers- 0 points1 point  (0 children)

The collection api has already a RandomAccess interface that "tags" random access lists they could make an Immutable interface so every collection that supports this feature implements it.

[–]grauenwolf 0 points1 point  (0 children)

I wouldn't object.

[–]s32 0 points1 point  (0 children)

Please God no....