NSMutableOrderedSet
************** Mutable Ordered Set ***************
class NSMutableOrderedSet
************** Mutable Ordered Set ***************
class NSMutableOrderedSet
import Foundation
class NSOrderedSet
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomReflectable
A type that explicitly supplies its own mirror.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol ExpressibleByArrayLiteral
A type that can be initialized using an array literal.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol NSCoding
The NSCoding
protocol declares the two methods that a class must implement so that instances of that class can be encoded and decoded. This capability provides the basis for archiving (where objects and other structures are stored on disk) and distribution (where objects are copied to different address spaces).
protocol NSCopying
The NSCopying
protocol declares a method for providing functional copies of an object. The exact meaning of “copy” can vary from class to class, but a copy must be a functionally independent object with values identical to the original at the time the copy was made.
protocol NSMutableCopying
The NSMutableCopying
protocol declares a method for providing mutable copies of an object. Only classes that define an “immutable vs. mutable” distinction should adopt this protocol. Classes that don’t define such a distinction should adopt NSCopying
instead.
protocol NSObjectProtocol : AnyObject
The NSObjectProtocol
groups methods that are fundamental to all Foundation objects.
protocol NSSecureCoding : NSCoding
Conforming to the NSSecureCoding
protocol indicates that an object handles encoding and decoding instances of itself in a manner that is robust against object substitution attacks.
protocol Sequence<Element>
A type that provides sequential, iterated access to its elements.
convenience init()
convenience init(array: [Any])
convenience init(array set: [Any], copyItems flag: Bool)
convenience init(array set: [Any], range: NSRange, copyItems flag: Bool)
required convenience init(arrayLiteral elements: Any...)
init(capacity numItems: Int)
required convenience init?(coder aDecoder: NSCoder)
convenience init(object: Any)
convenience init(objects elements: Any...)
override init(objects: UnsafePointer<AnyObject>?, count cnt: Int)
convenience init(orderedSet set: NSOrderedSet)
convenience init(orderedSet set: NSOrderedSet, copyItems flag: Bool)
convenience init(orderedSet set: NSOrderedSet, range: NSRange, copyItems flag: Bool)
convenience init(set: Set<AnyHashable>)
convenience init(set: Set<AnyHashable>, copyItems flag: Bool)
override subscript(idx: Int) -> Any { get set }
func add(_ object: Any)
func add(_ objects: UnsafePointer<AnyObject>?, count: Int)
func addObjects(from array: [Any])
override func copy(with zone: NSZone? = nil) -> Any
func exchangeObject(at idx1: Int, withObjectAt idx2: Int)
func filter(using predicate: NSPredicate)
func insert(_ objects: [Any], at indexes: IndexSet)
func insert(_ object: Any, at idx: Int)
func intersect(_ other: NSOrderedSet)
func intersectSet(_ other: Set<AnyHashable>)
func minus(_ other: NSOrderedSet)
func minusSet(_ other: Set<AnyHashable>)
func moveObjects(at indexes: IndexSet, to idx: Int)
func remove(_ val: Any)
func removeAllObjects()
func removeObject(at idx: Int)
func removeObjects(at indexes: IndexSet)
func removeObjects(in range: NSRange)
func removeObjects(in array: [Any])
func replaceObject(at idx: Int, with obj: Any)
func replaceObjects(at indexes: IndexSet, with objects: [Any])
func replaceObjects(in range: NSRange, with objects: UnsafePointer<AnyObject>!, count: Int)
func setObject(_ obj: Any, at idx: Int)
Sets the object at the specified index of the mutable ordered set.
func sort(comparator cmptr: (Any, Any) -> ComparisonResult)
func sort(options opts: NSSortOptions = [], usingComparator cmptr: (Any, Any) -> ComparisonResult)
func sort(using sortDescriptors: [NSSortDescriptor])
func sortRange(_ range: NSRange, options opts: NSSortOptions = [], usingComparator cmptr: (Any, Any) -> ComparisonResult)
func union(_ other: NSOrderedSet)
func unionSet(_ other: Set<AnyHashable>)