Annotation Interface Ungrowable
@Documented
@Retention(RUNTIME)
@Target({TYPE_USE,TYPE_PARAMETER})
@SubtypeOf(MaybeGrowable.class)
public @interface Ungrowable
Calling grow operations such as
add, addAll, etc. on this collection will throw
UnsupportedOperationException.
No guarantees are made about shrink or replace operations.
- See the Checker Framework Manual:
- Modifiability Checker