java-generics

Installation
SKILL.md

Java Generics

Master Java's generics system for writing type-safe, reusable code with compile-time type checking, generic classes, methods, wildcards, and type bounds.

Introduction to Generics

Generics enable types to be parameters when defining classes, interfaces, and methods, providing compile-time type safety.

Basic generic class:

public class Box<T> {
    private T content;

    public void set(T content) {
        this.content = content;
Related skills
Installs
23
GitHub Stars
152
First Seen
Jan 22, 2026