편집

다음을 통해 공유


AdIterator

Contains the methods for iterating through a list of ads. For information about iterators, see Iterators.

Methods

Method Name Return Type Description
hasNext Boolean Gets a Boolean value that indicates whether the iterator has more elements.
next Ad Advances the iterator and returns the next ad.
totalNumEntities int Gets the number of ads that matched the selector's selection criteria.

hasNext

Gets a Boolean value that indicates whether the iterator has more elements.

Returns

Type Description
Boolean Is true if the iterator has more elements; otherwise, false.

next

Advances the iterator and returns the next ad.

Returns

Type Description
Ad The next ad in the iterator.

totalNumEntities

Gets the number of ads that matched the selector's selection criteria.

Returns

Type Description
int The number of ads that matched the selector's selection criteria.

See also