eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HistoryCollectionWithoutDuplicates':

Home

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

Class: HistoryCollectionWithoutDuplicates


Inheritance:

   Object
   |
   +--Collection
      |
      +--SequenceableCollection
         |
         +--HistoryCollection
            |
            +--HistoryCollectionWithoutDuplicates

Package:
stx:libbasic2
Category:
Collections-Sequenceable
Version:
rev: 1.3 date: 2022/02/25 15:48:48
user: cg
file: HistoryCollectionWithoutDuplicates.st directory: libbasic2
module: stx stc-classLibrary: libbasic2

Description:


similar to HistoryCollection,
but I will remove duplicate entries.
Useful for history of recently visited files/folders

    |h|

    h := HistoryCollectionWithoutDuplicates new:10.
    h addAll:(1 to:10).
    Transcript showCR:h.
    h add:4.
    h add:5.
    Transcript showCR:h.
    h addAll:(11 to:15).
    h add:11.
    h add:12.
    Transcript showCR:h.

copyright

COPYRIGHT (c) 2020 by eXept Software AG 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 protocol:

adding
o  add: anEntry

private
o  initializeWithSizeLimit: limitArg



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 06:43:12 GMT