RoleList

RoleList

역할(Role) 객체 목록을 나타내는 클래스예요. 관계 생성이나 여러 역할을 한 번에 설정할 때 매개변수로 사용돼요.

출처: Java API Reference

본문

역할(Role) 객체 목록을 나타내는 클래스예요. 관계 생성이나 여러 역할을 한 번에 설정할 때 매개변수로 사용돼요.

public class RoleList extends ArrayList<Object>
public List<Role> asList()
public void add(Role role) throws IllegalArgumentException
public void add(int index, Role role) throws IllegalArgumentException, IndexOutOfBoundsException
public void set(int index, Role role) throws IllegalArgumentException, IndexOutOfBoundsException
public boolean addAll(RoleList roleList) throws IndexOutOfBoundsException
public boolean addAll(int index, RoleList roleList) throws IllegalArgumentException, IndexOutOfBoundsException

더 알아보기 (Learn more)

Java 공식 API