eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'IdentityBag':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: IdentityBag


Inheritance:

   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

Description:


Like a Bag, but does identity compares (i.e. same as super identityNew).
For Squeak compatibility.

copyright

COPYRIGHT (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.

Class protocol:

instance creation
o  contentsClass
the default class to use for the underlying contents array,
used when instantiated with new/new:

o  new: size
return a new empty Bag with initial space for size elements.
Elements will be compared using identity compare (i.e. #== not #= equality).



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sun, 22 Dec 2024 01:23:08 GMT