Samond Classes Library 1.2.0-RELEASE build 166
List of all members
SCBidirectionalList Class Reference

Class for support the bidirectional lists of objects. More...

#import <SCBidirectionalList.h>

Inheritance diagram for SCBidirectionalList:
SCList SCCollection SCObject <SCMutableCollection> <SCCoding> <SCDictionaring> <SCStreaming> <SCCollectioning> <SCCollection>

Creating Lists

(SCBidirectionalList *) + listWithCoder:
 
(SCBidirectionalList *) + listWithContentsOfSerializedFile:
 
(SCBidirectionalList *) + listWithDataDictionary:
 
(SCBidirectionalList *) + listWithDataDictionaryFromFile:
 
(SCBidirectionalList *) + listWithStream:
 
(SCBidirectionalList *) + listWithFileStream:
 
(SCBidirectionalList *) + listWithName:
 
(SCBidirectionalList *) + listWithObject:
 
(SCBidirectionalList *) + listWithObjects:
 
(SCBidirectionalList *) + listWithCollection:
 
(SCBidirectionalList *) + listWithList:
 
(SCBidirectionalList *) + list
 

Querying a List

id lastObject
 
NSString * lastString
 
NSNumber * lastNumber
 
(SCByte- lastByte
 
(SCUByte- lastUByte
 
(SCShort- lastShort
 
(SCUShort- lastUShort
 
(SCInteger- lastInteger
 
(SCUInteger- lastUInteger
 
(SCLong- lastLong
 
(SCULong- lastULong
 
(char) - lastChar
 
(unichar) - lastUnichar
 
(const char *) - lastCharString
 
(BOOL) - lastBool
 
(SCFloat- lastFloat
 
(SCDouble- lastDouble
 

List Control

(id) - previousObject
 

Adding Objects

(void) - insertLastObject:
 
(void) - insertLastByte:
 
(void) - insertLastUByte:
 
(void) - insertLastShort:
 
(void) - insertLastUShort:
 
(void) - insertLastInteger:
 
(void) - insertLastUInteger:
 
(void) - insertLastLong:
 
(void) - insertLastULong:
 
(void) - insertLastChar:
 
(void) - insertLastUnichar:
 
(void) - insertLastCharString:
 
(void) - insertLastBool:
 
(void) - insertLastFloat:
 
(void) - insertLastDouble:
 
(void) - insertLastObjects:
 
(void) - insertLastCollection:
 

Removing Objects

(void) - removeLastObject
 

Replacing Objects

(void) - replaceLastObjectWithObject:
 
(void) - replaceLastObjectWithByte:
 
(void) - replaceLastObjectWithUByte:
 
(void) - replaceLastObjectWithShort:
 
(void) - replaceLastObjectWithUShort:
 
(void) - replaceLastObjectWithInteger:
 
(void) - replaceLastObjectWithUInteger:
 
(void) - replaceLastObjectWithLong:
 
(void) - replaceLastObjectWithULong:
 
(void) - replaceLastObjectWithChar:
 
(void) - replaceLastObjectWithUnichar:
 
(void) - replaceLastObjectWithCharString:
 
(void) - replaceLastObjectWithBool:
 
(void) - replaceLastObjectWithFloat:
 
(void) - replaceLastObjectWithDouble:
 

Copying Objects

(void) - duplicateLastObject
 

Additional Inherited Members

- Instance Methods inherited from SCList
(SCByte- currentByte
 
(SCUByte- currentUByte
 
(SCShort- currentShort
 
(SCUShort- currentUShort
 
(SCInteger- currentInteger
 
(SCUInteger- currentUInteger
 
(SCLong- currentLong
 
(SCULong- currentULong
 
(char) - currentChar
 
(unichar) - currentUnichar
 
(const char *) - currentCharString
 
(BOOL) - currentBool
 
(SCFloat- currentFloat
 
(SCDouble- currentDouble
 
(SCByte- firstByte
 
(SCUByte- firstUByte
 
(SCShort- firstShort
 
(SCUShort- firstUShort
 
(SCInteger- firstInteger
 
(SCUInteger- firstUInteger
 
(SCLong- firstLong
 
(SCULong- firstULong
 
(char) - firstChar
 
(unichar) - firstUnichar
 
(const char *) - firstCharString
 
(BOOL) - firstBool
 
(SCFloat- firstFloat
 
(SCDouble- firstDouble
 
(id) - initWithName:
 
(id) - initWithObject:
 
(id) - initWithObjects:
 
(id) - initWithCollection:
 
(id) - initWithList:
 
(id) - init
 
(void) - setList:
 
(BOOL) - isEqualToList:
 
(BOOL) - isEqualToContentsOfList:
 
(id) - nextObject
 
(void) - insertCurrentObject:
 
(void) - insertCurrentByte:
 
(void) - insertCurrentUByte:
 
(void) - insertCurrentShort:
 
(void) - insertCurrentUShort:
 
(void) - insertCurrentInteger:
 
(void) - insertCurrentUInteger:
 
(void) - insertCurrentLong:
 
(void) - insertCurrentULong:
 
(void) - insertCurrentChar:
 
(void) - insertCurrentUnichar:
 
(void) - insertCurrentCharString:
 
(void) - insertCurrentBool:
 
(void) - insertCurrentFloat:
 
(void) - insertCurrentDouble:
 
(void) - insertCurrentObjects:
 
(void) - insertCurrentCollection:
 
(void) - insertFirstObject:
 
(void) - insertFirstByte:
 
(void) - insertFirstUByte:
 
(void) - insertFirstShort:
 
(void) - insertFirstUShort:
 
(void) - insertFirstInteger:
 
(void) - insertFirstUInteger:
 
(void) - insertFirstLong:
 
(void) - insertFirstULong:
 
(void) - insertFirstChar:
 
(void) - insertFirstUnichar:
 
(void) - insertFirstCharString:
 
(void) - insertFirstBool:
 
(void) - insertFirstFloat:
 
(void) - insertFirstDouble:
 
(void) - insertFirstObjects:
 
(void) - insertFirstCollection:
 
(void) - removeCurrentObject
 
(void) - removeFirstObject
 
(void) - replaceCurrentObjectWithObject:
 
(void) - replaceCurrentObjectWithByte:
 
(void) - replaceCurrentObjectWithUByte:
 
(void) - replaceCurrentObjectWithShort:
 
(void) - replaceCurrentObjectWithUShort:
 
(void) - replaceCurrentObjectWithInteger:
 
(void) - replaceCurrentObjectWithUInteger:
 
(void) - replaceCurrentObjectWithLong:
 
(void) - replaceCurrentObjectWithULong:
 
(void) - replaceCurrentObjectWithChar:
 
(void) - replaceCurrentObjectWithUnichar:
 
(void) - replaceCurrentObjectWithCharString:
 
(void) - replaceCurrentObjectWithBool:
 
(void) - replaceCurrentObjectWithFloat:
 
(void) - replaceCurrentObjectWithDouble:
 
(void) - replaceFirstObjectWithObject:
 
(void) - replaceFirstObjectWithByte:
 
(void) - replaceFirstObjectWithUByte:
 
(void) - replaceFirstObjectWithShort:
 
(void) - replaceFirstObjectWithUShort:
 
(void) - replaceFirstObjectWithInteger:
 
(void) - replaceFirstObjectWithUInteger:
 
(void) - replaceFirstObjectWithLong:
 
(void) - replaceFirstObjectWithULong:
 
(void) - replaceFirstObjectWithChar:
 
(void) - replaceFirstObjectWithUnichar:
 
(void) - replaceFirstObjectWithCharString:
 
(void) - replaceFirstObjectWithBool:
 
(void) - replaceFirstObjectWithFloat:
 
(void) - replaceFirstObjectWithDouble:
 
(void) - duplicateCurrentObject
 
(void) - duplicateFirstObject
 
- Instance Methods inherited from SCCollection
(void) - enumerateWithDelegate:
 
(void) - enumerate
 
(void) - reverseEnumerateWithDelegate:
 
(void) - reverseEnumerate
 
(void) - setCollection:
 
(void) - setObject:
 
(void) - setObjects:
 
(BOOL) - isEqualToCollection:
 
(BOOL) - isEqual:
 
(void) - addObjects:
 
(void) - addByte:
 
(void) - addUByte:
 
(void) - addShort:
 
(void) - addUShort:
 
(void) - addInteger:
 
(void) - addUInteger:
 
(void) - addLong:
 
(void) - addULong:
 
(void) - addChar:
 
(void) - addUnichar:
 
(void) - addCharString:
 
(void) - addBool:
 
(void) - addFloat:
 
(void) - addDouble:
 
(void) - addCollection:
 
(void) - removeObjectsWithClass:
 
(void) - removeObjectsWithClassName:
 
(void) - removeCollection:
 
(void) - removeObject:
 
(void) - removeByte:
 
(void) - removeUByte:
 
(void) - removeShort:
 
(void) - removeUShort:
 
(void) - removeInteger:
 
(void) - removeUInteger:
 
(void) - removeLong:
 
(void) - removeULong:
 
(void) - removeChar:
 
(void) - removeUnichar:
 
(void) - removeCharString:
 
(void) - removeBool:
 
(void) - removeFloat:
 
(void) - removeDouble:
 
(void) - removeObjects:
 
(BOOL) - containsByte:
 
(BOOL) - containsUByte:
 
(BOOL) - containsShort:
 
(BOOL) - containsUShort:
 
(BOOL) - containsInteger:
 
(BOOL) - containsUInteger:
 
(BOOL) - containsLong:
 
(BOOL) - containsULong:
 
(BOOL) - containsChar:
 
(BOOL) - containsUnichar:
 
(BOOL) - containsCharString:
 
(BOOL) - containsBool:
 
(BOOL) - containsFloat:
 
(BOOL) - containsDouble:
 
(BOOL) - containsObjects:
 
(BOOL) - containsCollection:
 
(BOOL) - containsAnyObject:
 
(BOOL) - containsAnyObjectFromCollection:
 
(BOOL) - isCollection
 
(BOOL) - isLibraryCollection
 
(BOOL) - isFoundationCollection
 
(BOOL) - isArray
 
(BOOL) - isLibraryArray
 
(BOOL) - isFoundationArray
 
(BOOL) - isSet
 
(BOOL) - isLibrarySet
 
(BOOL) - isFoundationSet
 
(BOOL) - isOrderedSet
 
(BOOL) - isLibraryOrderedSet
 
(BOOL) - isFoundationOrderedSet
 
(BOOL) - isDictionary
 
(BOOL) - isLibraryDictionary
 
(BOOL) - isFoundationDictionary
 
(BOOL) - isStack
 
(BOOL) - isQueue
 
(BOOL) - isSortable
 
- Instance Methods inherited from SCObject
(id) - initWithContentsOfSerializedFile:
 
(BOOL) - writeContentsToSerializedFile:
 
(id) - initWithDataDictionaryFromFile:
 
(void) - writeToDataDictionaryFile:atomically:
 
(void) - writeToDataDictionaryFile:
 
(NSDictionary *) - dataDictionary
 
(id) - initWithFileStream:
 
(void) - writeToFileStream:
 
(void) - appendToFileStream:
 
- Instance Methods inherited from <SCCoding>
- Instance Methods inherited from <SCDictionaring>
- Instance Methods inherited from <SCCollectioning>
- Instance Methods inherited from <SCMutableCollection>
- Instance Methods inherited from <SCCollection>
- Class Methods inherited from SCCollection
(BOOL) + isCollectionClass:
 
(BOOL) + isLibraryCollectionClass:
 
(BOOL) + isFoundationCollectionClass:
 
(BOOL) + isArrayClass:
 
(BOOL) + isLibraryArrayClass:
 
(BOOL) + isFoundationArrayClass:
 
(BOOL) + isSetClass:
 
(BOOL) + isLibrarySetClass:
 
(BOOL) + isFoundationSetClass:
 
(BOOL) + isOrderedSetClass:
 
(BOOL) + isLibraryOrderedSetClass:
 
(BOOL) + isFoundationOrderedSetClass:
 
(BOOL) + isDictionaryClass:
 
(BOOL) + isLibraryDictionaryClass:
 
(BOOL) + isFoundationDictionaryClass:
 
(BOOL) + isStackClass:
 
(BOOL) + isQueueClass:
 
(BOOL) + isListClass:
 
(BOOL) + isSortableClass:
 
(BOOL) + isCollection:
 
(BOOL) + isLibraryCollection:
 
(BOOL) + isFoundationCollection:
 
(BOOL) + isArray:
 
(BOOL) + isLibraryArray:
 
(BOOL) + isFoundationArray:
 
(BOOL) + isSet:
 
(BOOL) + isLibrarySet:
 
(BOOL) + isFoundationSet:
 
(BOOL) + isOrderedSet:
 
(BOOL) + isLibraryOrderedSet:
 
(BOOL) + isFoundationOrderedSet:
 
(BOOL) + isDictionary:
 
(BOOL) + isLibraryDictionary:
 
(BOOL) + isFoundationDictionary:
 
(BOOL) + isStack:
 
(BOOL) + isQueue:
 
(BOOL) + isList:
 
(BOOL) + isSortable:
 
- Properties inherited from SCList
id currentObject
 
NSString * currentString
 
NSNumber * currentNumber
 
id firstObject
 
NSString * firstString
 
NSNumber * firstNumber
 
- Properties inherited from SCCollection
NSString * name
 
BOOL readOnly
 
id< SCCollectionDelegatedelegate
 
SCULong count
 
BOOL empty
 
NSString * typeName
 
NSString * description
 
NSEnumerator * objectEnumerator
 
NSEnumerator * reverseObjectEnumerator
 
- Properties inherited from <SCCollection>
SCULong count
 
BOOL empty
 
NSString * description
 
SCArrayarray
 
SCSetset
 
SCOrderedSetorderedSet
 
SCDictionarydictionary
 
SCStackstack
 
SCQueuequeue
 
SCUnidirectionalListunidirectionalList
 
SCBidirectionalListbidirectionalList
 
NSArray * foundationArray
 
NSSet * foundationSet
 
NSOrderedSet * foundationOrderedSet
 
NSDictionary * foundationDictionary
 
NSEnumerator * objectEnumerator
 

Detailed Description

Class for support the bidirectional lists of objects.

Since
version 1.1.3

In the bidirectional list each object node contains, besides the next-node link, a seconf link field pointing to the previous node in the sequence. The two links may be called forwards and backwards, or next and prev.

Class SCBidirectionalList provides changing the current object pointer in two directions - from current object to the next object and from current to the previous object. Additionally, class SCBidirectionalList declares the methods for accessing to the list last object.

Class instances can thrown the following exceptions:

Method Documentation

- (void) duplicateLastObject

Duplicates the first object within the receiving list.

Exceptions
SCCollectionException- collection error detected
- (void) insertLastBool: (BOOL)  value

Inserts a given boolean value into the receiving list before the last object.

Parameters
value- the value to add into the list
Exceptions
SCCollectionException- collection error detected
- (void) insertLastByte: (SCByte value

Inserts a given signed 8-bit integer value into the receiving list before the last object.

Parameters
value- the value to add into the list
Exceptions
SCCollectionException- collection error detected
- (void) insertLastChar: (char)  value

Inserts a given character into the receiving list before the last object.

Parameters
value- the character to add into the list
Exceptions
SCCollectionException- collection error detected
See also
- insertLastUnichar:
- (void) insertLastCharString: (const char *)  string

Inserts a given character string into the receiving list before the last object.

Parameters
string- the character string to add into the list
Exceptions
SCCollectionException- collection error detected
- (void) insertLastCollection: (id)  collection

Inserts the objects from the specified collection into the receiving list before the last object.

Parameters
collection- the collection of objects to add into the receiving list
Exceptions
SCCollectionException- collection error detected
- (void) insertLastDouble: (SCDouble value

Inserts a given double value into the receiving list before the last object.

Parameters
value- the value to add into the list
Exceptions
SCCollectionException- collection error detected
- (void) insertLastFloat: (SCFloat value

Inserts a given float value into the receiving list before the last object.

Parameters
value- the value to add into the list
Exceptions
SCCollectionException- collection error detected
- (void) insertLastInteger: (SCInteger value

Inserts a given signed 32-bit integer value into the receiving list before the last object.

Parameters
value- the value to add into the list
Exceptions
SCCollectionException- collection error detected
- (void) insertLastLong: (SCLong value

Inserts a given signed 64-bit integer value into the receiving list before the last object.

Parameters
value- the value to add into the list
Exceptions
SCCollectionException- collection error detected
- (void) insertLastObject: (id)  object

Inserts a given object into the receiving list before the last object.

Parameters
object- the object to add into the list
Exceptions
SCCollectionException- collection error detected
- (void) insertLastObjects: (id)  object
,   NS_REQUIRES_NIL_TERMINATION 

Inserts the objects from the specified null-terminated list into the receiving list before the last object.

Parameters
object- the first object to add into the list
...- other objects from the null-terminated list to add into the receiving list
NS_REQUIRES_NIL_TERMINATION- the mandatory nil pointer
Exceptions
SCCollectionException- collection error detected
- (void) insertLastShort: (SCShort value

Inserts a given signed 16-bit integer value into the receiving list before the last object.

Parameters
value- the value to add into the list
Exceptions
SCCollectionException- collection error detected
- (void) insertLastUByte: (SCUByte value

Inserts a given unsigned 8-bit integer value into the receiving list before the last object.

Parameters
value- the value to add into the list
Exceptions
SCCollectionException- collection error detected
- (void) insertLastUInteger: (SCUInteger value

Inserts a given unsigned 32-bit integer value into the receiving list before the last object.

Parameters
value- the value to add into the list
Exceptions
SCCollectionException- collection error detected
- (void) insertLastULong: (SCULong value

Inserts a given unsigned 64-bit integer value into the receiving list before the last object.

Parameters
value- the value to add into the list
Exceptions
SCCollectionException- collection error detected
- (void) insertLastUnichar: (unichar)  value

Inserts a given character into the receiving list before the last object.

Parameters
value- the character to add into the list
Exceptions
SCCollectionException- collection error detected
See also
- insertLastChar:
- (void) insertLastUShort: (SCUShort value

Inserts a given unsigned 16-bit integer value into the receiving list before the last object.

Parameters
value- the value to add into the list
Exceptions
SCCollectionException- collection error detected
- (BOOL) lastBool

Returns the last object within the receiving list as a boolean value.

Returns
A last object or 0 if the list is empty
Exceptions
SCCollectionException- collection error detected
- (SCByte) lastByte

Returns the last object within the receiving list as a signed 8-bit integer value.

Returns
A last object or 0 if the list is empty
Exceptions
SCCollectionException- collection error detected
- (char) lastChar

Returns the last object within the receiving list as a character.

Returns
A last object or 0 if the list is empty
Exceptions
SCCollectionException- collection error detected
See also
- lastUnichar
- (const char *) lastCharString

Returns the last object within the receiving list as a character string.

Returns
A last object or nil if the list is empty
Exceptions
SCCollectionException- collection error detected
- (SCDouble) lastDouble

Returns the last object within the receiving list as a double value.

Returns
A last object or 0.0 if the list is empty
Exceptions
SCCollectionException- collection error detected
- (SCFloat) lastFloat

Returns the last object within the receiving list as a float value.

Returns
A last object or 0.0 if the list is empty
Exceptions
SCCollectionException- collection error detected
- (SCInteger) lastInteger

Returns the last object within the receiving list as a signed 32-bit integer value.

Returns
A last object or 0 if the list is empty
Exceptions
SCCollectionException- collection error detected
- (SCLong) lastLong

Returns the last object within the receiving list as a signed 64-bit integer value.

Returns
A last object or 0 if the list is empty
Exceptions
SCCollectionException- collection error detected
- (SCShort) lastShort

Returns the last object within the receiving list as a signed 16-bit integer value.

Returns
A last object or 0 if the list is empty
Exceptions
SCCollectionException- collection error detected
- (SCUByte) lastUByte

Returns the last object within the receiving list as an unsigned 8-bit integer value.

Returns
A last object or 0 if the list is empty
Exceptions
SCCollectionException- collection error detected
- (SCUInteger) lastUInteger

Returns the last object within the receiving list as an unsigned 32-bit integer value.

Returns
A last object or 0 if the list is empty
Exceptions
SCCollectionException- collection error detected
- (SCULong) lastULong

Returns the last object within the receiving list as an unsigned 64-bit integer value.

Returns
A last object or 0 if the list is empty
Exceptions
SCCollectionException- collection error detected
- (unichar) lastUnichar

Returns the last object within the receiving list as a character.

Returns
A last object or 0 if the list is empty
Exceptions
SCCollectionException- collection error detected
See also
- lastChar
- (SCUShort) lastUShort

Returns the last object within the receiving list as an unsigned 16-bit integer value.

Returns
A last object or 0 if the list is empty
Exceptions
SCCollectionException- collection error detected
+ (SCBidirectionalList *) list

Creates and returns an unnamed empty bidirectional list.

Returns
A created bidirectional list
+ (SCBidirectionalList *) listWithCoder: (NSCoder *)  coder

Returns a bidirectional list created by using the specified coder.

Parameters
coder- the source coder
Returns
A created bidirectional list
+ (SCBidirectionalList *) listWithCollection: (id)  collection

Returns a bidirectional list created by using the objects from the specified collection of any supported type.

Parameters
collection- the existing source collection
Returns
A created bidirectional list
Exceptions
SCCollectionException- collection error detected
+ (SCBidirectionalList *) listWithContentsOfSerializedFile: (NSString *)  path

Returns a bidirectional list created by using the content of the serialized file with the specified path.

Parameters
path- the path to the source serialized file
Returns
A created bidirectional list
+ (SCBidirectionalList *) listWithDataDictionary: (NSDictionary *)  dictionary

Returns a bidirectional list created by using the specified data dictionary.

Parameters
dictionary- the source data dictionary
Returns
A created bidirectional list
+ (SCBidirectionalList *) listWithDataDictionaryFromFile: (NSString *)  path

Returns a bidirectional list created by using the data dictionary from the specified file.

Parameters
path- the path to the source data dictionary file
Returns
A created bidirectional list
+ (SCBidirectionalList *) listWithFileStream: (NSString *)  path

Returns a bidirectional list created by using the data from the file stream with the specified file.

Parameters
path- the path to the source file stream
Returns
A created bidirectional list
Exceptions
SCStreamException- stream error detected
SCSystemException- system error detected
+ (SCBidirectionalList *) listWithList: (SCList *)  list

Creates and returns a bidirectional list containing objects from another given list.

Parameters
list- a list containing the objects with which to initialize the new bidirectional list
Returns
A new bidirectional list containing the objects found in the specified list
Exceptions
SCCollectionException- collection error detected
+ (SCBidirectionalList *) listWithName: (NSString *)  name

Returns an empty bidirectional list created by using the specified list name.

Parameters
name- the name of the new bidirectional list
Returns
A created bidirectional list
+ (SCBidirectionalList *) listWithObject: (id)  object

Creates and returns a bidirectional list containing a given object.

Parameters
object- the object to adding into the bidirectional list
Returns
A new bidirectional list containing a signe object
+ (SCBidirectionalList *) listWithObjects: (id)  object
,   NS_REQUIRES_NIL_TERMINATION 

Creates and returns a bidirectional list containing the objects from the specified list.

Parameters
object- the first object to add into the new bidirectional list
...- a null-terminated list of alternating objects to add into the new list
NS_REQUIRES_NIL_TERMINATION- the mandatory nil pointer
Returns
A new bidirectional list containing the specified objects
+ (SCBidirectionalList *) listWithStream: (SCStream *)  stream

Returns a bidirectional list created by using the data from the specified stream.

Parameters
stream- the source stream
Returns
A created bidirectional list
Exceptions
SCStreamException- stream error detected
SCSystemException- system error detected
- (id) previousObject

Shifts the current object to the previous object in the receiving list and returns a pointer to the previous object.

Returns
A previous object or nil if the current object is a fist object within the list
- (void) removeLastObject

Removes the last object from the receiving list.

Exceptions
SCCollectionException- collection error detected
- (void) replaceLastObjectWithBool: (BOOL)  value

Replaces the last object with a given boolean value.

Parameters
value- the value with which to replace the last object
Exceptions
SCCollectionException- collection error detected
- (void) replaceLastObjectWithByte: (SCByte value

Replaces the last object with a given signed 8-bit integer value.

Parameters
value- the value with which to replace the last object
Exceptions
SCCollectionException- collection error detected
- (void) replaceLastObjectWithChar: (char)  value

Replaces the last object with a given character.

Parameters
value- the character with which to replace the last object
Exceptions
SCCollectionException- collection error detected
See also
- replaceLastObjectWithUnichar:
- (void) replaceLastObjectWithCharString: (const char *)  string

Replaces the last object with a given character string.

Parameters
string- the character string with which to replace the last object
Exceptions
SCCollectionException- collection error detected
- (void) replaceLastObjectWithDouble: (SCDouble value

Replaces the last object with a given double value.

Parameters
value- the value with which to replace the last object
Exceptions
SCCollectionException- collection error detected
- (void) replaceLastObjectWithFloat: (SCFloat value

Replaces the last object with a given float value.

Parameters
value- the value with which to replace the last object
Exceptions
SCCollectionException- collection error detected
- (void) replaceLastObjectWithInteger: (SCInteger value

Replaces the last object with a given signed 32-bit integer value.

Parameters
value- the value with which to replace the last object
Exceptions
SCCollectionException- collection error detected
- (void) replaceLastObjectWithLong: (SCLong value

Replaces the last object with a given signed 64-bit integer value.

Parameters
value- the value with which to replace the last object
Exceptions
SCCollectionException- collection error detected
- (void) replaceLastObjectWithObject: (id)  object

Replaces the last object with a given object.

Parameters
object- the object with which to replace the last object
Exceptions
SCCollectionException- collection error detected
- (void) replaceLastObjectWithShort: (SCShort value

Replaces the last object with a given signed 16-bit integer value.

Parameters
value- the value with which to replace the last object
Exceptions
SCCollectionException- collection error detected
- (void) replaceLastObjectWithUByte: (SCUByte value

Replaces the last object with a given unsigned 8-bit integer value.

Parameters
value- the value with which to replace the last object
Exceptions
SCCollectionException- collection error detected
- (void) replaceLastObjectWithUInteger: (SCUInteger value

Replaces the last object with a given unsigned 32-bit integer value.

Parameters
value- the value with which to replace the last object
Exceptions
SCCollectionException- collection error detected
- (void) replaceLastObjectWithULong: (SCULong value

Replaces the last object with a given unsigned 64-bit integer value.

Parameters
value- the value with which to replace the last object
Exceptions
SCCollectionException- collection error detected
- (void) replaceLastObjectWithUnichar: (unichar)  value

Replaces the last object with a given character.

Parameters
value- the character with which to replace the last object
Exceptions
SCCollectionException- collection error detected
See also
- replaceLastObjectWithChar:
- (void) replaceLastObjectWithUShort: (SCUShort value

Replaces the last object with a given unsigned 16-bit integer value.

Parameters
value- the value with which to replace the last object
Exceptions
SCCollectionException- collection error detected

Property Documentation

- (NSNumber *) lastNumber
readnonatomicretain

The last object withing the list as a number

- (id) lastObject
readnonatomicretain

The last object within the list or nil if the list is empty

- (NSString *) lastString
readnonatomicretain

The last object within the list as a string


The documentation for this class was generated from the following files: