Inherits from NSObject
Conforms to NSCopying
Declared in RCTSparseArray.h

Overview

Copyright © 2015-present, Facebook, Inc. All rights reserved.

This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory.

Properties

allIndexes

@property (readonly, nonatomic, copy) NSArray *allIndexes

allObjects

@property (readonly, nonatomic, copy) NSArray *allObjects

count

@property (readonly, nonatomic) NSUInteger count

Class Methods

sparseArray

+ (instancetype)sparseArray

sparseArrayWithCapacity:

+ (instancetype)sparseArrayWithCapacity:(NSUInteger)capacity

sparseArrayWithSparseArray:

+ (instancetype)sparseArrayWithSparseArray:(RCTSparseArray *)sparseArray

Instance Methods

enumerateObjectsUsingBlock:

- (void)enumerateObjectsUsingBlock:(void ( ^ ) ( id obj , NSNumber *idx , BOOL *stop ))block

enumerateObjectsWithOptions:usingBlock:

- (void)enumerateObjectsWithOptions:(NSEnumerationOptions)opts usingBlock:(void ( ^ ) ( id obj , NSNumber *idx , BOOL *stop ))block

initWithCapacity:

- (instancetype)initWithCapacity:(NSUInteger)capacity

initWithSparseArray:

- (instancetype)initWithSparseArray:(RCTSparseArray *)sparseArray

objectAtIndexedSubscript:

- (id)objectAtIndexedSubscript:(NSUInteger)idx

objectForKeyedSubscript:

- (id)objectForKeyedSubscript:(NSNumber *)key

removeAllObjects

- (void)removeAllObjects

setObject:atIndexedSubscript:

- (void)setObject:(id)obj atIndexedSubscript:(NSUInteger)idx

setObject:forKeyedSubscript:

- (void)setObject:(id)obj forKeyedSubscript:(NSNumber *)key