(Java 소스 분석) List 인터페이스

 참고 하면 좋은 사이트
https://www.tutorialspoint.com/java/util/arraylist_toarray.htm

*interface로 구현 됨

<추상메소드>

1. int size()
2. boolean isEmpty()
3. boolean iscontains(Object o)
4. Iterator<E> iterator();
5. Object[] toArray() - Array로 바꾸는 메소드
6. boolean add(E e) - 현재 element 의 끝에 붙이는 메소드
7. boolean remove(E e)- 첫 번째 element를 제거하는 메소드, element가 존재한다면
8. boolean containsAll(Collection<?> c) - 특정한 collection타입 요소들을 모두 포함하고 있을 때 true를 리턴함
9. boolean addAll(Collection<? extends E> c) -
10. boolean addAll(int index, Collection<? extends E> c) - 특정 지점 부터 c 데이터들을 모두 집어넣는 메소드
11. boolean removeAll(Collection<?> c) - 모든 요소들을 삭제하는 메소드
12. boolean retainAll(Collection<?> c)-

댓글

이 블로그의 인기 게시물

(네트워크)폴링방식 vs 롱 폴링방식

(ElasticSearch) 결과에서 순서 정렬

(18장) WebSocekt과 STOMP를 사용하여 메시징하기