Package org.jetbrains.annotations
Annotation Type UnmodifiableView
-
@Documented @Retention(CLASS) @Target(TYPE_USE) public @interface UnmodifiableView
An annotation which marks aCollection
orMap
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.- Since:
- 19.0.0
- See Also:
Unmodifiable