카페검색 본문
카페글 본문
-
자바 프로그래밍 목차 및 소스 코드 2011.09.09해당카페글 미리보기
객체 그룹 관리 1. 컬렉션의 종류와 기본 사용법 1.1 Collection 인터페이스의 주요 메서드 1.2 Iterator와 for 구문 및 Iterable를 이용한 컬렉션 접근 1.3 컬렉션을 배열로 변환하기 2. List를 이용한 인덱스 기반 목록 처리 2.1 주요 List 구현 클래스...
-
[Android] 성능을 위한 설계 - 이동훈님 2010.12.04해당카페글 미리보기
한다면 가능). 주의 깊게 향상된 반복문(Enhanced For Loop)을 사용하라 향상된 반복문(때로 "for-each"로 알려진 반복문)은 Iterable 인터페이스를 구현한 컬렉션들을 위해 사용될 수 있습니다. 이러한 객체들로, 반복자는 hasNext() 와 next()을 호출...
-
Struts 2 Training! Get Trained Now!!! 2010.05.12해당카페글 미리보기
In this section, we are going to describe the Iterator tag. Iterator tag is used to iterate over a value. An iterable value can be either of: java.util.Collection or java.util.Iterator. Merge Tag (Control Tags) Example In this section...
-
java API를 이용한 컴파일 2009.05.18해당카페글 미리보기
getTask( Writer out, JavaFileManager fileManager, DiagnosticListener diagnosticListener, Iterable options, Iterable classes, Iterable compilationUnits) 이러한 인수 대부분은 다음과 같은 논리적 기본값을 가진 null일 수 있다. * out: System...
-
바쁜 자바 프로그래머를 위한 스칼라 입문: 루프 때문에 당황하지 말자! [펌] 2008.06.09해당카페글 미리보기
셈이다. 스칼라에서 for문이 인지하는 것은 컬렉션 내 요소를 하나씩 처리할 때의 기본 동작을 정의한 scala.Iterable이다. 뭐든 Iterable 기능(기술적으로 스칼라에서는 특성(trait)이라고 하지만 당분간은 인터페이스라고 생각해도 무방하다)을 제공하는...
-
DefaltListModel 을 ComboBoxModel 로 변환 가능 할까요 2007.11.13해당카페글 미리보기
위의 방법 보다 더 복잡하다면 더이상 고민할 것도 없겠지만.. 최소한 for ( : ) 문법으로도 한번 적용시키고 싶습니다. for (Iterable I : DLM.elements() ) { combo.add( I.toString() ); } // 이것도 안되구요 하면 할 수록 프로그래밍이 어렵네요...
-
Re:인터페이스!!! 2007.02.26해당카페글 미리보기
@see Collections * @see Arrays * @see AbstractCollection * @since 1.2 */ public interface Collection extends Iterable { // Query Operations /** * Returns the number of elements in this collection. If this collection * contains more than...
-
Text Processing in Python 인용 - APPENDIX -- A Selective and Impressionistic Short Review of Python 2003.08.11해당카페글 미리보기
Although 'for' is a looping construct, the way it works is by binding successive elements of an iterable object to a name (in the current namespace). The following constructs...
-
Python 2.3 final 간략히 소개내용들 (www.python.org) 2003.08.07해당카페글 미리보기
to the dict() constructor are now a shorthand for creating a dictionary from the key/value pairs, and dict.fromkeys(iterable) returns a dict whose keys are taken from the given iterable (the values default to None). Also a new dict...
-
항상 매일 10개씩 배웁시다 (3) 2003.08.07해당카페글 미리보기
sys from os import stat, linesep from stat import ST_SIZE from random import randrange MAX_LINE_LEN = 4096 #-- Iterable class class randline(object): __slots__ = ('_fp','_size','_limit') def __init__(self, fname, limit=sys.maxint): self...