Inherits from NSObject
Declared in BFDataStructures.h

Overview

Primitive List implementation

Tasks

Instance Methods

deleteObject:

- (BOOL)deleteObject:(id _Nonnull)object
Discussion

Delete an element in the List

Parameters

object

The object to be deleted

Return Value

Returns YES if deleted, otherwise NO

Declared In

BFDataStructures.h

deleteObjectAtIndex:

- (BOOL)deleteObjectAtIndex:(NSInteger)index
Discussion

Delete an element at the given index

Parameters

index

The index to delete

Return Value

Returns YES if deleted, otherwise NO

Declared In

BFDataStructures.h

description

- (NSString *_Nonnull)description
Discussion

Describe the List

Return Value

Describe the List

Declared In

BFDataStructures.h

init

- (instancetype _Nonnull)init
Discussion

Initialize the List

Return Value

Returns the List object

Declared In

BFDataStructures.h

insert:

- (void)insert:(id _Nonnull)object
Discussion

Insert an element in the List

Parameters

object

The element to insert in the List

Declared In

BFDataStructures.h

searchObject:

- (NSInteger)searchObject:(NSObject *_Nonnull)object
Discussion

Search an element and returns the index

Parameters

object

The element to search

Return Value

Returns the index of the searched element

Declared In

BFDataStructures.h

searchObjectAtIndex:

- (id _Nullable)searchObjectAtIndex:(NSInteger)index
Discussion

Search for an index and returns the element

Parameters

index

The index

Return Value

Returns the element of the searched index

Declared In

BFDataStructures.h