FSTArraySortedDictionaryEnumerator.h 841 B

1234567891011121314151617181920212223242526
  1. #import <Foundation/Foundation.h>
  2. NS_ASSUME_NONNULL_BEGIN
  3. @interface FSTArraySortedDictionaryEnumerator <KeyType, ValueType> : NSEnumerator<ValueType>
  4. - (id)init __attribute__((unavailable("Use initWithKeys:startPos:endPos:isReverse: instead.")));
  5. /**
  6. * An enumerator for use with a dictionary.
  7. *
  8. * @param keys The keys to enumerator within.
  9. * @param start The index of the initial key to return.
  10. * @param end If end is after (or equal to) start (or before, if reverse), then the enumerator will
  11. * stop and not return the value once it reaches end.
  12. */
  13. - (instancetype)initWithKeys:(NSArray<KeyType> *)keys
  14. startPos:(int)start
  15. endPos:(int)end
  16. isReverse:(BOOL)reverse NS_DESIGNATED_INITIALIZER;
  17. - (_Nullable ValueType)nextObject;
  18. @end
  19. NS_ASSUME_NONNULL_END