FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
NSATriple Class Reference

Manages ordered collections of 3 objects. More...

#import <NSADataObject.h>

Inheritance diagram for NSATriple:
<NSAArrayLikeDataObject> <NSAIndexedSubscript> NSAMutableTriple

Instance Methods

(instancetype) - initWithFirst:second:third:
 Initilize a triple containing first as first object, second as second object and third as third object. More...
 
- Instance Methods inherited from <NSAArrayLikeDataObject>
(id) - objectAtIndex:
 Returns the object located at index. More...
 
(NSUInteger) - indexOfObject:
 Returns the lowest index whose corresponding member value is equal to a given object. More...
 
(BOOL) - containsObject:
 Returns a Boolean value that indicates whether a given object is present in the array. More...
 
(id) - :
 Returns the object located at index. Shortcut of objectAtIndex: More...
 
- Instance Methods inherited from <NSAIndexedSubscript>
(id) - objectAtIndexedSubscript:
 Returns the object located at the specified index. More...
 

Class Methods

(instancetype) + triple
 Creates and returns an empty triple. More...
 
(instancetype) + tripleWithFirst:second:third:
 Creates and returns a triple containing first as first object, second as second object and third as third object. More...
 

Protected Attributes

id _first
 
id _second
 
id _third
 

Properties

id first
 first object More...
 
id second
 second object More...
 
id third
 third object More...
 
- Properties inherited from <NSAArrayLikeDataObject>
NSUInteger count
 Returns the number of objects currently in the data object. More...
 
NSArray * allObjects
 Returns an array containing the container’s members, or an empty array if the container has no members. More...
 

Detailed Description

Manages ordered collections of 3 objects.

Method Documentation

- (instancetype) initWithFirst: (id)  first
second: (id)  second
third: (id)  third 

Initilize a triple containing first as first object, second as second object and third as third object.

Parameters
firstValue for first
secondValue for second
thirdValue for third
Returns
A tuple with first, second and third value.
+ (instancetype) triple

Creates and returns an empty triple.

Returns
An empty triple.
+ (instancetype) tripleWithFirst: (id)  first
second: (id)  second
third: (id)  third 

Creates and returns a triple containing first as first object, second as second object and third as third object.

See also
- initWithFirst:second:third:

Member Data Documentation

- (id) _first
protected
- (id) _second
protected
- (id) _third
protected

Property Documentation

- (id) first
readnonatomicunsafe_unretained

first object

- (id) second
readnonatomicunsafe_unretained

second object

- (id) third
readnonatomicunsafe_unretained

third object


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