FunkyCollectionCounterpart

@protocol FunkyCollectionCounterpart <NSObject>

This is a protocol for generic collections to provide information about their mutable and immutable counterparts.

  • This method returns the immutable counterpart of the collection, eg. NSMutalbeArray

    Declaration

    Objective-C

    + (Class)classForImmutableCounterPart;

    Swift

    static func classForImmutableCounterPart() -> AnyClass!

    Return Value

    The Class of the immutable counterpart

  • This method returns the mutable counterpart of the collection, eg. NSArray

    Declaration

    Objective-C

    + (Class)classForMutableCounterPart;

    Swift

    static func classForMutableCounterPart() -> AnyClass!

    Return Value

    The Class of the mutable counterpart

  • This method returns the common type (usually class-cluster) to be processed when flattening the collection

    Declaration

    Objective-C

    + (Class)classToFlatten;

    Swift

    static func classToFlatten() -> AnyClass!

    Return Value

    The Class of the instances to flatten