[freenet-cvs] r11750 - trunk/freenet/src/freenet/support

toad at freenetproject.org toad at freenetproject.org
Sat Feb 10 18:23:35 UTC 2007


Author: toad
Date: 2007-02-10 18:23:21 +0000 (Sat, 10 Feb 2007)
New Revision: 11750

Modified:
   trunk/freenet/src/freenet/support/SimpleFieldSet.java
Log:
Comments

Modified: trunk/freenet/src/freenet/support/SimpleFieldSet.java
===================================================================
--- trunk/freenet/src/freenet/support/SimpleFieldSet.java	2007-02-10 18:07:39 UTC (rev 11749)
+++ trunk/freenet/src/freenet/support/SimpleFieldSet.java	2007-02-10 18:23:21 UTC (rev 11750)
@@ -50,7 +50,7 @@
        	this.shortLived = shortLived;
         read(br, allowMultiple);
     }
-    
+
     public SimpleFieldSet(SimpleFieldSet sfs){
     	values = new HashMap(sfs.values);
     	subsets = new HashMap(sfs.subsets);
@@ -66,7 +66,10 @@
     }
     
     /**
-     * Empty constructor
+     * Create a SimpleFieldSet.
+     * @param shortLived If false, strings will be interned to ensure that they use as
+     * little memory as possible. Only set to true if the SFS will be short-lived or
+     * small.
      */
     public SimpleFieldSet(boolean shortLived) {
         values = new HashMap();
@@ -76,6 +79,9 @@
 
     /**
      * Construct from a string.
+     * @param shortLived If false, strings will be interned to ensure that they use as
+     * little memory as possible. Only set to true if the SFS will be short-lived or
+     * small.
      * @throws IOException if the string is too short or invalid.
      */
     public SimpleFieldSet(String content, boolean allowMultiple, boolean shortLived) throws IOException {




More information about the cvs mailing list