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