@Documented
@Retention(value=CLASS)
@Target(value=TYPE_USE)
public @interface UnmodifiableView
Collection
or Map
type
as unmodifiable view. A collection or a map is unmodifiable view if any mutator methods
(e.g. Collection.add(Object)
) throw exception or have no effect.
However, the content of the collection or the map may still be updated by other code.Unmodifiable