logo

New Response

« Return to the blog entry

You are replying to:

  1. In Java, you can use a HashMap:

    http://download.oracle.com/javase/1.4.2/docs/api/java/util/AbstractMap.html

    HashMaps are "regular" LS Lists, while TreeMaps are sorted.

    So you can use:

    Map<String,Document> docs = new HashMap<String, Document>();

    (to store Notes documents), or:

    Map<String,Document> docs = new TreeMap<String, Document>();

    to have them sorted.

    It's not wise to store Notes Documents without recycling them, though, so don't do that.

    If you were using Groovy, then you could simply do:

    def docs = [:]

    docs[doc.getUniversalId()] = doc

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: