Unique strings list class.
More...
#import <SCUniqueStrings.h>
Unique strings list class.
- SDK
- macOS 10.6+, iOS 7.0+, GNUstep
- Since
- version 1.2.0
Class SCUniqueStrings extends the parent class SCString by adding the functionality for support the unique strings lists - each string of this list must be unique. Class SCUniqueStrings instances does not allow adding into the list the duplicated strings. Duplicate string is a string, which is already exists within the list.
Class instances can thrown the following exceptions:
Initializes an unique strings list using strings from the specified existing unique strings list.
- Parameters
-
strings | - the source unique strings list |
- Returns
- A newly initialized unique strings list
- Exceptions
-
Returns a boolean value that indicates whether the content of the receiving unique strings list is equal to the content of another given unique strings list.
- Parameters
-
uniqueStrings | - the unique strings list with which to compare the receiving unique strings list |
- Returns
- YES if the content of other unique strings list is equal to the content of the receiving unique strings list, otherwise NO
Replaces the content and settings of the receiving unique strings list by using the content and settings from the specified existing unique strings list.
- Parameters
-
uniqueStrings | - the source unique strings list |
- Exceptions
-
+ (instancetype) uniqueStrings |
|
|
|
Returns an empty unnamed unique strings list created by using the default settings.
- Returns
- A created unique strings list
- (instancetype) uniqueStringsByAddingArray: |
|
(SCArray *) |
array |
|
Returns the new unique strings list that contains strings from the receiving unique strings list and a given array.
- Parameters
-
array | - an array with objects to add to the new unique strings list |
- Returns
- An unique strings list with strings from the receiving unique strings and a given array
- Exceptions
-
- Since
- version 1.2.3
- See also
- - uniqueStringsByAddingStringsFromArray:
- (instancetype) uniqueStringsByAddingCollection: |
|
(id<SCCollection>) |
collection |
|
Returns the new unique strings list that contains strings from the receiving unique strings list and a given collection of any supported type.
- Parameters
-
collection | - a collection with strings for add to the new unique strings list |
- Returns
- An unique strings list with strings from the receiving unique strings and a given collection
- Exceptions
-
- Since
- version 1.2.3
- (instancetype) uniqueStringsByAddingString: |
|
(NSString *) |
string |
|
Returns the new unique strings list that contains strings from the receiving unique strings list and a given string.
- Parameters
-
string | - the string to add to the new list |
- Returns
- An unique strings list with strings from the receiving unique strings list and the specified string
- Exceptions
-
- Since
- version 1.2.3
- (instancetype) uniqueStringsByAddingStrings: |
|
(SCStrings *) |
strings |
|
Returns the new unique strings list that contains strings from the receiving unique strings list and a given strings list.
- Parameters
-
strings | - a list of strings to add to the new unique strings list |
- Returns
- An unique strings list with strings from the receiving unique strings list and a given strings list
- Exceptions
-
- Since
- version 1.2.3
- (instancetype) uniqueStringsByAddingStringsFromArray: |
|
(SCArray *) |
array |
|
Returns the new unique strings list that contains strings from the receiving unique strings list and a given array.
- Parameters
-
array | - an array with objects to add to the new unique strings list |
- Returns
- An unique strings list with strings from the receiving unique strings and a given array
- Exceptions
-
- Since
- version 1.2.3
- See also
- - uniqueStringsByAddingArray:
- (instancetype) uniqueStringsByAddingUniqueStrings: |
|
(SCUniqueStrings *) |
uniqueStrings |
|
Returns the new unique strings list that contains strings from the receiving unique strings list and a given another unique strings list.
- Parameters
-
uniqueStrings | - an unique list of strings to add to the new unique strings list |
- Returns
- An unique strings list with strings from the receiving unique strings list and a given another unique strings list
- Exceptions
-
- Since
- version 1.2.3
+ (instancetype) uniqueStringsWithArray: |
|
(SCArray *) |
array |
|
Returns an unique strings list created by using strings from a given array.
- Parameters
-
array | - an array with strings to add to the new list |
- Returns
- A created unique strings list
- Exceptions
-
- Since
- 1.2.3
+ (instancetype) uniqueStringsWithCoder: |
|
(NSCoder *) |
coder |
|
Returns an unique strings list created by using the specified coder.
- Parameters
-
- Returns
- A created unique strings list
+ (instancetype) uniqueStringsWithCollection: |
|
(id<SCCollection>) |
collection |
|
Returns an unique strings list created by using the strings from the specified existing collection of any supported type.
- Parameters
-
collection | - the source collection |
- Returns
- A created unique strings list
- Exceptions
-
+ (instancetype) uniqueStringsWithContentsOfFile: |
|
(NSString *) |
path |
|
Returns an unique strings list created by using the file with the specified path.
- Parameters
-
path | - the path to the source file |
- Returns
- A created unique strings list
+ (instancetype) uniqueStringsWithContentsOfSerializedFile: |
|
(NSString *) |
path |
|
Returns an unique strings list created by using the contents of serialized file with the specified path.
- Parameters
-
path | - the path of the source serialized file |
- Returns
- A created unique strings list
+ (instancetype) uniqueStringsWithContentsOfURL: |
|
(NSURL *) |
url |
|
Returns an unique strings list created by using the specified URL.
- Parameters
-
- Returns
- A created unique strings list
+ (instancetype) uniqueStringsWithContentsOfURLString: |
|
(NSString *) |
urlString |
|
Returns an unique strings list created by using the data from the URL with the specified string.
- Parameters
-
urlString | - the string of the source URL |
- Returns
- A created unique strings list
+ (instancetype) uniqueStringsWithData: |
|
(NSData *) |
data |
|
Returns an unique strings list created by using the specified data object.
- Parameters
-
data | - the source data object |
- Returns
- A created unique strings list
+ (instancetype) uniqueStringsWithDataDictionary: |
|
(NSDictionary *) |
dictionary |
|
Returns an unique strings list created by using the specified data dictionary.
- Parameters
-
dictionary | - the source data dictionary |
- Returns
- A created unique strings list
+ (instancetype) uniqueStringsWithDataDictionaryFromFile: |
|
(NSString *) |
path |
|
Returns an unique strings list created by using the data dictionary from the specified file.
- Parameters
-
path | - the path of the source data dictionary file |
- Returns
- A created unique strings list
+ (instancetype) uniqueStringsWithFileStream: |
|
(NSString *) |
path |
|
Returns an unique strings list created by using the data from the file stream with the specified path.
- Parameters
-
path | - the path to the source stream file |
- Returns
- A created unique strings list
- Exceptions
-
+ (instancetype) uniqueStringsWithName: |
|
(NSString *) |
name |
|
Returns an unique strings list created by using the specified list name.
- Parameters
-
- Returns
- A created unique strings list
+ (instancetype) uniqueStringsWithStream: |
|
(SCStream *) |
stream |
|
Returns an unique strings list created by using the data from the specified stream.
- Parameters
-
stream | - the source stream |
- Returns
- A created unique strings list
- Exceptions
-
+ (instancetype) uniqueStringsWithString: |
|
(NSString *) |
string |
|
Returns an unique strings list created by using the specified existing source string.
- Parameters
-
string | - the source string |
- Returns
- A created unique strings list
- Exceptions
-
+ (instancetype) uniqueStringsWithStrings: |
|
(SCStrings *) |
strings |
|
Returns an unique strings list created by using the strings from the specified existing source strings list.
- Parameters
-
strings | - the source strings list |
- Returns
- A created unique strings list
- Exceptions
-
+ (instancetype) uniqueStringsWithUniqueStrings: |
|
(SCUniqueStrings *) |
uniqueStrings |
|
Returns an unqiue strings list created by using the strings from the specified existing source unique strings list.
- Parameters
-
uniqueStrings | - the source unique strings list |
- Returns
- A created unique strings list
- Exceptions
-
- (NSOrderedSet *) foundationOrderedSet |
|
readnonatomicassign |
Returns a standard ordered set with the copy of all receiving unique strings list strings
Returns an ordered set with the copy of all receiving unique strings list strings
Returns a strings list with the copy of all receiving unique strings list strings
Determines the mandatory exception generation when string unique violation is detected.
The documentation for this class was generated from the following files: