Annotation Interface GrowOnly
@Documented
@Retention(RUNTIME)
@Target({TYPE_USE,TYPE_PARAMETER})
@SubtypeOf(UnshrinkableRef.class)
public @interface GrowOnly
An expression of type
@GrowOnly
may not be used to remove elements, e.g., by calling
remove()
or clear()
on it. The underlying collection is guaranteed not to shrink
via operations on aliases.- See the Checker Framework Manual:
- Grow-only Checker