제네릭
제네릭이 필요한 이유
public class IntegerBox {
private Integer value;
public void set(Integer value) {
this.value = value;
}
public Integer get() {
return value;
}
}
public class StringBox {
private String value;
public void set(String object) {
this.value = object;
}
public String get() {
return value;
}
}제네릭 적용
제네릭 타입
타입 매개변수
타입 인자
명명 관례
기타
raw 타입
Last updated