Skip to main content

One doc tagged with "pecs"

View all tags

Wildcards

How Java's wildcard type arguments — `?`, `? extends T`, and `? super T` — express variance in generic APIs, and how the PECS rule guides correct usage.