// // SHRange.h // ShazamKit // // Copyright © 2022 Apple Inc. All rights reserved. // #import #import NS_HEADER_AUDIT_BEGIN(nullability, sendability) /// A half-open interval from a lower bound up to, but not including, an upper bound. SH_EXPORT NS_SWIFT_SENDABLE API_AVAILABLE(macos(13.0), ios(16.0), tvos(16.0), watchos(9.0)) NS_REFINED_FOR_SWIFT @interface SHRange : NSObject /// The lowerBound of this time range @property (NS_NONATOMIC_IOSONLY, assign, readonly) double lowerBound; /// The upperBound of this time range, not included in this range @property (NS_NONATOMIC_IOSONLY, assign, readonly) double upperBound; /// Convenience constructor for creating a range /// @param lowerBound The lower bound of this range /// @param upperBound The upper bound of this range /// @note lowerBound should be less than or equal to upperBound + (instancetype)rangeWithLowerBound:(double)lowerBound upperBound:(double)upperBound; /// Convenience constructor for creating a range /// @param lowerBound The lower bound of this range /// @param upperBound The upper bound of this range /// @note lowerBound should be less than or equal to upperBound - (instancetype)initWithLowerBound:(double)lowerBound upperBound:(double)upperBound NS_DESIGNATED_INITIALIZER; - (instancetype)init NS_UNAVAILABLE; + (instancetype)new NS_UNAVAILABLE; @end NS_HEADER_AUDIT_END(nullability, sendability)