������ ����� IntelliJ
IDEA���� Generics ������ �����ϰ� �¾��ϱ� ���� ������ �ʿ�� �ϴ°��� ����մϴ�.
Generics�� �Բ� ����
|
����, IDEA���� Generics�� �Բ� ���ϴ� 2������ ����� �ֽ��ϴ�.
http://java.sun.com/ �� ���� Java SDK 1.5 Beta �� �ٿ�ε��ϰ�, ��ġ�Ͻʽÿ�. ����������Generics ������ �����ϰ� �ϱ� ���ؼ�, ����� File |
Settings: Paths ������ ���� 5.0 - 'enum'
keyword, autoboxing, etc. ���� Language
level for project�� �����մϴ�.

�׷���, ���� ����� Generics �����Ϸ��� 'bleeding
edge' ������ �۵���Ű�� �;��ϸ� ����� �ΰ������� �װ��� �ٿ�ε��ϰ�, ��ġ�� �� �ֽ��ϴ�. �׷��� ���, ����� �Ʒ��� ����� ���� ���� ���� 1���� ���� �ʿ䰡 ���� ���Դϴ�.
�����Ϸ� ���
|
����� �ڵ忡��
bleeding-edge Generics ������ ����� �����ϰ� �ϱ� ���� ����� ó������ �����Ϸ��� ��� ���� �ʿ��� ���Դϴ�.
�����Ϸ��� �ٿ�ε��ϴ� ���� ���� ����� Introducing Generics
���ǿ� �־��� �� ����ũ�νý����� ��θ� ����մϴ�. Generics ������ �¾��ϴ� 2������ ����� IDEA�� �ֽ��ϴ�: Wizard-assisted �� Manual
������ ������Generics ���� ����
|
Set Up JSR-014 Implementation ������� Tools |
Set Up JSR-014 Implementation... �� �����ϴ� �Ϳ� ���� �ҷ��� �� �ֽ��ϴ�. ������� �� ���� �ֿ��� ��ɸ� ������ ���� ������ �ֽ��ϴ�:
IDEA���� Generics ������ ��� �����ϰ� �մϴ�
������ ������Ʈ���� Generics ������ ��� �����ϰ� �մϴ�
�׸��� ������� ����� ������Ʈ���� Generics ������ ���¿� �����Ͽ� �۾�(�׸� ��Ÿ���� ������ ��) �˴ϴ�. 3���� Ư���� ���°� ���� �� �ֽ��ϴ�:
� ���� ���� ������Ʈ�� ���� �ʽ��ϴ�. �׸��� Generics ������ �������� �ʽ��ϴ�.
���� ������Ʈ�� �ֽ��ϴ�, Generics ������ �������� ������ ����� ������Ʈ�� ���̺귯���� �߰����� �ʽ��ϴ�.
���� ������Ʈ�� �ֽ��ϴ�, Generics ������ ���������� ����� ������Ʈ�� ���̺귯���� �߰����� �ʽ��ϴ�.
Wizard steps:
1. Welcoming
page

Set Up JSR-014
Implementation �����翡 ���� ������ ����.
2. JSR-014
Installation page

�� ���������� ellipsis ��ư�� ������ �ҷ����� Select
Path ���̾�α׸� ����Ͽ� Generics ���̺귯���� ��ġ�ϴ� ��θ� ������ �� �ֽ��ϴ�. If you do not have the necessary
libraries, press the
link to the Adding Generics page at java.sun.com to
download them.
���� ����� �ʿ��� ���̺귯���� ���� ������, �װ͵��� �ٿ�ε��ϱ� ���ؼ� the
link to the Adding Generics page at java.sun.com�� �����ʽÿ�.

|
�̰��� ���� ����� Generics
configuration 1�� 2�� ���� ���� �������Դϴ�.
|
4. Add
Generics to Project page

�����ϴ� üũ �ڽ��� �����Ͽ� Generics ������ ��� �����ϰ� �Ǿ�߸� �ϴ� �� ����� �����Ͻʽÿ�.
�Ŵ���
Generics�� ������ �����մϴ�
|
�Ŵ��� Generics �� �� ���� �ܰ�� ������ ������ �����մϴ�:
1. Copying the jar files
����� IDEA ��ġ�� lib ���͸��� ������͸� generics �� �����Ͻʽÿ�.
archive
downloaded from java.sun.com �� Unzup�ϰ�, �� ���� jar������ ã���ʽÿ� ('collect.jar' �� 'gjc-rt.jar'). �̵� ���ϵ��� lib/generics ���͸��� �����Ͻʽÿ�.
2. Changing Project Properties
Libraries (Classpath) �ǿ��� File
| Settings: IDE Settings: Paths ���̾�α׸� ����, Module, Project �Ǵ�
Global ���̺귯�� ������
collect.jar �� ��θ� �߰��Ͻʽÿ�.

Order ���� ����, collect.jar �� �� ���(������ �ڹ� SDK ����)�� �����մϴ�.

File |
Settings: Project Settings: Compiler ���̾�α׸� ���� Use
generics-enabled compiler
üũ �ڽ��� �����մϴ�.

IDEA�� �ٽ� �����ϴ� ���� ���� ���ʽÿ�.
3. Check
if it Works
����� ��Ȯ�ϰ� Generics ������ �¾��ߴ°��� üũ�ϴ� ���� ������
�����ϴ�.
� Java ���� ��������, ���� ���
java.util.Vector �ν��Ͻ� �Ǵ� � Collection. ���� ��� ���� ������, ����� �װ��� �Ű� ������ ��Ÿ�� �� �ְ� �ǰ�, ���� ������ �� �� ���� ���Դϴ�:
Vector<String> vector = new Vector<String>();
|