From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8eff44ec1bcf8433 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-16 15:37:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!drn From: Robert*@ Newsgroups: comp.lang.ada Subject: Re: Container reqs Date: 16 Oct 2001 15:12:44 -0700 Organization: Newsguy News Service [http://newsguy.com] Message-ID: <9qibcs02e5q@drn.newsguy.com> References: <9qctpn$lil$1@news.huji.ac.il> <3BCC01B1.18C18C98@free.fr> <3BCC6CB7.20BAA30D@boeing.com> NNTP-Posting-Host: p-944.newsdawg.com X-Newsreader: Direct Read News 2.90 Xref: archiver1.google.com comp.lang.ada:14758 Date: 2001-10-16T15:12:44-07:00 List-Id: In article , Stephen says... > > >No conflict here, just different experience. Apparently, the library >should have both task safe and non-task safe components, as the Booch >library has (and my library does not; my experience matches >Jean-Marc's, so far). > In java, you can create a synchronized version of any java standard collection . Same collection name, same interface, etc... see http://developer.java.sun.com/developer/qow/archive/60/index.html This is from the above "The synchronization wrappers add automatic synchronization (thread-safety) to an arbitrary collection. There is one static factory method for each of the six core collection interfaces: public static Collection synchronizedCollection( Collection c); public static Set synchronizedSet(Set s); public static List synchronizedList(List list); public static Map synchronizedMap(Map m); public static SortedSet synchronizedSortedSet( SortedSet s); public static SortedMap synchronizedSortedMap( SortedMap m); Each of these methods returns a synchronized (thread-safe) Collection backed by the specified collection." If you like to see a list of java collection, see http://java.sun.com/j2se/1.3/docs/guide/collections/reference.html