|
Class: IdentityBag
Object
|
+--Collection
|
+--Bag
|
+--IdentityBag
- Package:
- stx:libbasic2
- Category:
- Collections-Unordered
- Version:
- rev:
1.2
date: 2021/01/20 13:05:02
- user: cg
- file: IdentityBag.st directory: libbasic2
- module: stx stc-classLibrary: libbasic2
Like a Bag, but does identity compares (i.e. same as super identityNew).
For Squeak compatibility.
copyrightCOPYRIGHT (c) 2013 by Claus Gittinger
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
instance creation
-
contentsClass
-
the default class to use for the underlying contents array,
used when instantiated with new/new:
-
new: size
-
return a new empty Bag with initial space for size elements.
Elements will be compared using identity compare (i.e. #== not #= equality).
|