mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
Use ConstantCollecting protocol where appropriate.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@330 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
739755b9b4
commit
ef5d805762
2 changed files with 16 additions and 16 deletions
|
@ -42,16 +42,16 @@
|
||||||
|
|
||||||
// INITIALIZING;
|
// INITIALIZING;
|
||||||
- init;
|
- init;
|
||||||
- initWithContentsOf: (id <Collecting>)aCollection;
|
- initWithContentsOf: (id <ConstantCollecting>)aCollection;
|
||||||
|
|
||||||
// TESTING;
|
// TESTING;
|
||||||
- (BOOL) isEmpty;
|
- (BOOL) isEmpty;
|
||||||
- (BOOL) includesObject: anObject;
|
- (BOOL) includesObject: anObject;
|
||||||
- (BOOL) isSubsetOf: (id <Collecting>)aCollection;
|
- (BOOL) isSubsetOf: (id <ConstantCollecting>)aCollection;
|
||||||
- (BOOL) isDisjointFrom: (id <Collecting>)aCollection;
|
- (BOOL) isDisjointFrom: (id <ConstantCollecting>)aCollection;
|
||||||
- (int) compare: anObject;
|
- (int) compare: anObject;
|
||||||
- (BOOL) isEqual: anObject;
|
- (BOOL) isEqual: anObject;
|
||||||
- (BOOL) contentsEqual: (id <Collecting>)aCollection;
|
- (BOOL) contentsEqual: (id <ConstantCollecting>)aCollection;
|
||||||
- (unsigned) count;
|
- (unsigned) count;
|
||||||
- (unsigned) occurrencesOfObject: anObject;
|
- (unsigned) occurrencesOfObject: anObject;
|
||||||
- (BOOL) trueForAllObjectsByCalling: (BOOL(*)(id))aFunc;
|
- (BOOL) trueForAllObjectsByCalling: (BOOL(*)(id))aFunc;
|
||||||
|
@ -134,16 +134,16 @@
|
||||||
// ADDING;
|
// ADDING;
|
||||||
- addObject: newObject;
|
- addObject: newObject;
|
||||||
- addObjectIfAbsent: newObject;
|
- addObjectIfAbsent: newObject;
|
||||||
- addContentsOf: (id <Collecting>)aCollection;
|
- addContentsOf: (id <ConstantCollecting>)aCollection;
|
||||||
- addContentsOfIfAbsent: (id <Collecting>)aCollection;
|
- addContentsOfIfAbsent: (id <ConstantCollecting>)aCollection;
|
||||||
- addObjectsCount: (unsigned)count, ...;
|
- addObjectsCount: (unsigned)count, ...;
|
||||||
|
|
||||||
// REMOVING;
|
// REMOVING;
|
||||||
- removeObject: oldObject;
|
- removeObject: oldObject;
|
||||||
- removeObject: oldObject ifAbsentCall: (id(*)(arglist_t))excFunc;
|
- removeObject: oldObject ifAbsentCall: (id(*)(arglist_t))excFunc;
|
||||||
- removeAllOccurrencesOfObject: oldObject;
|
- removeAllOccurrencesOfObject: oldObject;
|
||||||
- removeContentsIn: (id <Collecting>)aCollection;
|
- removeContentsIn: (id <ConstantCollecting>)aCollection;
|
||||||
- removeContentsNotIn: (id <Collecting>)aCollection;
|
- removeContentsNotIn: (id <ConstantCollecting>)aCollection;
|
||||||
- uniqueContents;
|
- uniqueContents;
|
||||||
- empty;
|
- empty;
|
||||||
|
|
||||||
|
|
|
@ -42,16 +42,16 @@
|
||||||
|
|
||||||
// INITIALIZING;
|
// INITIALIZING;
|
||||||
- init;
|
- init;
|
||||||
- initWithContentsOf: (id <Collecting>)aCollection;
|
- initWithContentsOf: (id <ConstantCollecting>)aCollection;
|
||||||
|
|
||||||
// TESTING;
|
// TESTING;
|
||||||
- (BOOL) isEmpty;
|
- (BOOL) isEmpty;
|
||||||
- (BOOL) includesObject: anObject;
|
- (BOOL) includesObject: anObject;
|
||||||
- (BOOL) isSubsetOf: (id <Collecting>)aCollection;
|
- (BOOL) isSubsetOf: (id <ConstantCollecting>)aCollection;
|
||||||
- (BOOL) isDisjointFrom: (id <Collecting>)aCollection;
|
- (BOOL) isDisjointFrom: (id <ConstantCollecting>)aCollection;
|
||||||
- (int) compare: anObject;
|
- (int) compare: anObject;
|
||||||
- (BOOL) isEqual: anObject;
|
- (BOOL) isEqual: anObject;
|
||||||
- (BOOL) contentsEqual: (id <Collecting>)aCollection;
|
- (BOOL) contentsEqual: (id <ConstantCollecting>)aCollection;
|
||||||
- (unsigned) count;
|
- (unsigned) count;
|
||||||
- (unsigned) occurrencesOfObject: anObject;
|
- (unsigned) occurrencesOfObject: anObject;
|
||||||
- (BOOL) trueForAllObjectsByCalling: (BOOL(*)(id))aFunc;
|
- (BOOL) trueForAllObjectsByCalling: (BOOL(*)(id))aFunc;
|
||||||
|
@ -134,16 +134,16 @@
|
||||||
// ADDING;
|
// ADDING;
|
||||||
- addObject: newObject;
|
- addObject: newObject;
|
||||||
- addObjectIfAbsent: newObject;
|
- addObjectIfAbsent: newObject;
|
||||||
- addContentsOf: (id <Collecting>)aCollection;
|
- addContentsOf: (id <ConstantCollecting>)aCollection;
|
||||||
- addContentsOfIfAbsent: (id <Collecting>)aCollection;
|
- addContentsOfIfAbsent: (id <ConstantCollecting>)aCollection;
|
||||||
- addObjectsCount: (unsigned)count, ...;
|
- addObjectsCount: (unsigned)count, ...;
|
||||||
|
|
||||||
// REMOVING;
|
// REMOVING;
|
||||||
- removeObject: oldObject;
|
- removeObject: oldObject;
|
||||||
- removeObject: oldObject ifAbsentCall: (id(*)(arglist_t))excFunc;
|
- removeObject: oldObject ifAbsentCall: (id(*)(arglist_t))excFunc;
|
||||||
- removeAllOccurrencesOfObject: oldObject;
|
- removeAllOccurrencesOfObject: oldObject;
|
||||||
- removeContentsIn: (id <Collecting>)aCollection;
|
- removeContentsIn: (id <ConstantCollecting>)aCollection;
|
||||||
- removeContentsNotIn: (id <Collecting>)aCollection;
|
- removeContentsNotIn: (id <ConstantCollecting>)aCollection;
|
||||||
- uniqueContents;
|
- uniqueContents;
|
||||||
- empty;
|
- empty;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue