|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjava.util.AbstractCollection <E>
java.util.AbstractList <E>
java.util.ArrayList <Object >
javax.management.relation.RoleList
public class RoleList
RoleList 는, 롤 (Role 객체)의 리스트를 나타냅니다. 관계를 작성할 때와 관계에 포함되는 복수의 롤을 setRoles() 메소드에 의해 설정하려고 할 때 파라미터로서 사용됩니다. RoleResult 의 일부로서 돌려주어져 취득에 성공한 롤을 제공합니다.
필드의 개요 |
---|
클래스 java.util. AbstractList 로부터 상속된 필드 |
---|
modCount |
생성자 의 개요 | |
---|---|
RoleList ()
빈 상태(empty)의 RoleList 를 작성합니다. |
|
RoleList (int initialCapacity)
지정된 초기 용량으로 빈 상태(empty)의 RoleList 를 작성합니다. |
|
RoleList (List <Role > list)
지정된 List 의 요소를 포함한 RoleList 를,List 의 반복자가 돌려주는 순서로 작성합니다. |
메소드의 개요 | |
---|---|
void |
add (int index,
Object element)
리스트내의 지정된 위치로 지정된 요소를 삽입합니다. |
void |
add (int index,
Role role)
요소로서 지정된 롤을 지정의 위치에 삽입합니다. |
boolean |
add (Object o)
리스트의 마지막으로, 지정된 요소를 추가합니다. |
void |
add (Role role)
리스트의 마지막 요소로서 지정된 Role 를 추가합니다. |
boolean |
addAll (Collection <? > c)
지정된 컬렉션내의 모든 요소를, 지정된 컬렉션의 반복자에 의해 반환되는 순서로 리스트의 마지막에 추가합니다. |
boolean |
addAll (int index,
Collection <? > c)
지정된 컬렉션내의 모든 요소를, 리스트의 지정된 위치에 삽입합니다. |
boolean |
addAll (int index,
RoleList roleList)
지정된 RoleList 내의 모든 요소를, 지정된 RoleList 의 반복자에 의해 반환되는 차례로, 지정의 위치에 삽입합니다. |
boolean |
addAll (RoleList roleList)
지정된 RoleList 내의 모든 요소를, 지정된 RoleList 의 반복자에 의해 반환되는 차례로, 리스트의 말미에 부가합니다. |
List <Role > |
asList ()
이 리스트의 뷰를 List<Role> 로서 돌려줍니다. |
Object |
set (int index,
Object element)
리스트의 지정된 위치에 있는 요소를, 지정된 요소로 옮겨놓습니다. |
void |
set (int index,
Role role)
지정된 위치의 요소에, 지정된 롤을 설정합니다. |
클래스 java.util. ArrayList 로부터 상속된 메소드 |
---|
clear , clone , contains , ensureCapacity , get , indexOf , isEmpty , lastIndexOf , remove , remove , removeRange , size , toArray , toArray , trimToSize |
클래스 java.util. AbstractList 로부터 상속된 메소드 |
---|
equals , hashCode , iterator , listIterator , listIterator , subList |
클래스 java.util. AbstractCollection 로부터 상속된 메소드 |
---|
containsAll , removeAll , retainAll , toString |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
finalize , getClass , notify , notifyAll , wait , wait , wait |
인터페이스 java.util. List 로부터 상속된 메소드 |
---|
containsAll , equals , hashCode , iterator , listIterator , listIterator , removeAll , retainAll , subList |
생성자 의 상세 |
---|
public RoleList()
public RoleList(int initialCapacity)
initialCapacity
- 초기 용량public RoleList(List <Role > list) throws IllegalArgumentException
List
의 요소를 포함한 RoleList
를,List
의 반복자가 돌려주는 순서로 작성합니다. RoleList
인스턴스의 초기 용량은, 지정된 List
의 사이즈의 110% 입니다.
list
- 새로운 RoleList
의 초기 컨텐츠를
정의하는 List
IllegalArgumentException
- list
파라미터가
null
인 경우, 또는 list
파라미터에
Role 가 아닌 객체가 포함되는 경우ArrayList.ArrayList(java.util.Collection)
메소드의 상세 |
---|
public List <Role > asList()
List<Role>
로서 돌려줍니다. 반환값을 변경하면(자) 원의 RoleList
가 변경되어 원의 RoleList
를 변경하면(자) 반환되는 값이 변경됩니다.
List<Role>
. 이 내용은,
RoleList
의 내용을 반영한다
이 메소드가 지정한 RoleList
인스턴스에 대해서 불려 갔을 경우, 이후에, 그 Role
이외의 인스턴스에 객체를 추가하려고 하는 시도는,IllegalArgumentException
를 throw 해 실패합니다. 호환성을 유지하기 위해(때문에), 이 메소드가 불려 간 적이 없는 RoleList
에서는,Role
이외의 객체를 추가하는 것이 가능합니다.
IllegalArgumentException
- 이 RoleList
에
Role
이외의 요소가 포함되는 경우public void add(Role role) throws IllegalArgumentException
role
- 추가되는 롤
IllegalArgumentException
- 롤이 null 의 경우public void add(int index, Role role) throws IllegalArgumentException , IndexOutOfBoundsException
index
- 신규 Role 객체를 삽입한다
리스트내의 위치role
- 삽입되는 Role 객체
IllegalArgumentException
- 롤이 null 의 경우
IndexOutOfBoundsException
- 리스트 외부의 인덱스로
액세스 했을 경우public void set(int index, Role role) throws IllegalArgumentException , IndexOutOfBoundsException
index
- 지정된 위치role
- 롤 요소의 설정치
IllegalArgumentException
- 롤이 null 의 경우
IndexOutOfBoundsException
- 리스트 외부의 인덱스로
액세스 했을 경우public boolean addAll(RoleList roleList) throws IndexOutOfBoundsException
roleList
- 리스트에 삽입되는 요소 (null 도 가능)
IndexOutOfBoundsException
- 리스트 외부의 인덱스로
액세스 했을 경우ArrayList.addAll(Collection)
public boolean addAll(int index, RoleList roleList) throws IllegalArgumentException , IndexOutOfBoundsException
index
- 지정된 RoleList 로부터
최초의 요소를 삽입하는 위치roleList
- 리스트에 삽입되는 요소
IllegalArgumentException
- 롤이 null 의 경우
IndexOutOfBoundsException
- 리스트 외부의 인덱스로
액세스 했을 경우ArrayList.addAll(int, Collection)
public boolean add(Object o)
ArrayList
의 기술:
Collection <Object >
내의 add
List <Object >
내의 add
ArrayList <Object >
내의 add
o
- 리스트에 추가되는 요소
Collection.add(E)
로 지정되었을 경우와 같이)public void add(int index, Object element)
ArrayList
의 기술:
List <Object >
내의 add
ArrayList <Object >
내의 add
index
- 지정의 요소가 삽입되는 위치의 인덱스element
- 삽입되는 요소public boolean addAll(Collection <? > c)
ArrayList
의 기술:
Collection <Object >
내의 addAll
List <Object >
내의 addAll
ArrayList <Object >
내의 addAll
c
- 리스트에 추가되는 요소를 포함한 컬렉션
AbstractCollection.add(Object)
public boolean addAll(int index, Collection <? > c)
ArrayList
의 기술:
List <Object >
내의 addAll
ArrayList <Object >
내의 addAll
index
- 지정된 컬렉션으로부터 최초의 요소를 삽입하는 위치의 인덱스c
- 리스트에 추가되는 요소를 포함한 컬렉션
public Object set(int index, Object element)
ArrayList
의 기술:
List <Object >
내의 set
ArrayList <Object >
내의 set
index
- 치환되는 요소의 인덱스element
- 지정된 위치에 포함되는 요소
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.