GRPC Objective-C  1.26.0
Class Methods
NSEnumerator(GRXUtil) Category Reference

#import <NSEnumerator+GRXUtil.h>

Class Methods

(NSEnumerator *) + grx_enumeratorWithContainer:
 Returns a NSEnumerator instance that iterates through the elements of the passed container that supports fast enumeration. More...
 
(NSEnumerator *) + grx_enumeratorWithSingleValue:
 Returns a NSEnumerator instance that provides a single object before finishing. More...
 
(NSEnumerator *) + grx_enumeratorWithValueSupplier:
 Returns a NSEnumerator instance that delegates the invocations of nextObject to the passed block. More...
 

Method Documentation

◆ grx_enumeratorWithContainer:

+ (NSEnumerator *) grx_enumeratorWithContainer: (id< NSFastEnumeration >)  container

Returns a NSEnumerator instance that iterates through the elements of the passed container that supports fast enumeration.

Note that this negates the speed benefits of fast enumeration over NSEnumerator. It's only intended for the rare cases when one needs the latter and only has the former, e.g. for iteration that needs to be paused and resumed later.

◆ grx_enumeratorWithSingleValue:

+ (NSEnumerator *) grx_enumeratorWithSingleValue: (id)  value

Returns a NSEnumerator instance that provides a single object before finishing.

The value is then released.

◆ grx_enumeratorWithValueSupplier:

+ (NSEnumerator *) grx_enumeratorWithValueSupplier: (id(^)(void))  block

Returns a NSEnumerator instance that delegates the invocations of nextObject to the passed block.

When the block first returns nil, it is released.


The documentation for this category was generated from the following file: