SPFloor
Objective-C
@interface SPFloor : NSObject
Swift
class SPFloor : NSObject
Simple abstraction of a floor in a building. Provides a way to store name and index data separately.
-
Numeric index of the floor. Ground floor is 0. Negative indices are below ground and positive are above.
Declaration
Objective-C
@property (nonatomic, strong) NSNumber *_Nonnull index;Swift
var index: NSNumber { get set } -
Name of the floor eg. “0”, “G”, “P”, “1” etc.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nonnull name;Swift
var name: String { get set } -
Compare SPFloor object with another
Declaration
Objective-C
- (NSComparisonResult)compare:(nonnull SPFloor *)object;Swift
func compare(_ object: SPFloor) -> ComparisonResultParameters
objectcomparison object
SPFloor Class Reference