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