eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Dolphin::SharedSet':

Home

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

Class: SharedSet (in Dolphin)


Inheritance:

   Object
   |
   +--Collection
      |
      +--Dolphin::SharedSet
         |
         +--Dolphin::SharedIdentitySet

Package:
stx:libcompat
Category:
Compatibility-Dolphin
Version:
rev: 1.7 date: 2021/01/20 13:12:14
user: cg
file: Dolphin__SharedSet.st directory: libcompat
module: stx stc-classLibrary: libcompat

Class protocol:

instance creation
o  new
(comment from inherited method)
return an instance of myself without indexed variables


Instance protocol:

adding & removing
o  add: anObject
(comment from inherited method)
add the argument, anObject to the receiver.
If the receiver is ordered, the position of the new element is undefined
(i.e. don't depend on where it will be put).
An error is raised here - it is to be implemented by a concrete subclass.

o  remove: anElement ifAbsent: exceptionBlock
(comment from inherited method)
search for the first element, which is equal to anObject;
if found, remove and return it.
If not found, return the value of the exceptionBlock.
Uses equality compare (=) to search for the occurrence.
An error is raised here - it is to be implemented by a concrete subclass.

enumeration
o  do: aBlock
(comment from inherited method)
evaluate the argument, aBlock for each element.
Return the receiver
(subclasses should care to also return the receiver,
in case do: is used in a chain of messages.)

queries
o  includes: anObject
(comment from inherited method)
return true, if an element equal to the argument, searchedElement is in the collection.
This compares using #= (i.e. it does not look for the object itself,
instead, one that compares equal).
See #includesIdentical: when identity is asked for.
This is a *very* slow fallback - many subclasses redefine this for performance.

o  isFixedSize
return true if the receiver cannot grow

o  size
(comment from inherited method)
return the number of elements in the receiver.
This is usually redefined in subclasses for more performance.

setup
o  initialize
(comment from inherited method)
just to ignore initialize to objects which do not need it

o  initializeSet



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 21 Dec 2024 17:13:30 GMT