Update of /var/cvs/src/org/mmbase/storage/util
In directory james.mmbase.org:/tmp/cvs-serv17652/src/org/mmbase/storage/util

Modified Files:
        TypeMapping.java 
Log Message:
Fixes un javadoc


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/storage/util


Index: TypeMapping.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/storage/util/TypeMapping.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- TypeMapping.java    3 Feb 2008 17:33:57 -0000       1.10
+++ TypeMapping.java    25 Mar 2008 21:00:24 -0000      1.11
@@ -27,14 +27,14 @@
  * (using the minSize/maxSize properties).
  *
  * @author Pierre van Rooden
- * @version $Id: TypeMapping.java,v 1.10 2008/02/03 17:33:57 nklasens Exp $
+ * @version $Id: TypeMapping.java,v 1.11 2008/03/25 21:00:24 nklasens Exp $
  * @since MMBase-1.7
  */
 public class TypeMapping implements Comparable<TypeMapping> {
 
     /**
      * The expression this type should translate to.
-     * You can access this property directly, but you can use [EMAIL 
PROTECTED] #getType(int)} to obtain an expanded expression.
+     * You can access this property directly, but you can use [EMAIL 
PROTECTED] #getType(long)} to obtain an expanded expression.
      */
     public String type;
     /**
@@ -56,10 +56,11 @@
     }
 
     /**
-     * Sets a fixed size for this TypeMapping.
-     * Effectively, this sets the minimimum and maximum size of the type 
mapping to the specified value, ensuring this TypeMapping object
-     * is equal to all TypeMappings whos minimum size is equal to or smaller 
than the size, and teh maximum size is equal to or greater
-     * that this size.
+     * Sets a fixed size for this TypeMapping. Effectively, this sets the 
minimum and maximum size
+     * of the type mapping to the specified value, ensuring this TypeMapping 
object is equal to all
+     * TypeMappings which minimum size is equal to or smaller than the size, 
and the maximum size is
+     * equal to or greater that this size.
+     * 
      * @param size the size to set
      */
     public void setFixedSize(long size) {
@@ -96,7 +97,7 @@
             TypeMapping tm = (TypeMapping) o;
             // A typemapping equals another type-mapping when the one contains 
the other.
             // Because of this the 'fixed' size type-mappings (created 
DatabaseStorageManager) are found by indexOf of the typeMappings Collection of 
DatabaseStorageManager.
-            // In this typeMappings Collection there are normally only 
'ranged' of sizes (as defined in th XML)
+            // In this typeMappings Collection there are normally only 
'ranged' of sizes (as defined in the XML)
             return (name == null ? tm.name == null : name.equals(tm.name)) &&
                (
                 ( (minSize >= tm.minSize || (tm.minSize <= 0)) && (maxSize <= 
tm.maxSize || (tm.maxSize <= 0)) )  // contained by.
@@ -108,7 +109,10 @@
             return false;
         }
     }
-    // javadoc inherited
+
+    /**
+     * @see java.lang.Object#hashCode()
+     */
     public int hashCode() {
         // because of the complicated equals implementation minSize and 
maxSize cannot be present in hashCode
         return name == null ? 0 : name.hashCode();
@@ -116,12 +120,16 @@
 
     /**
      * Returns the mappings type.
+     * @param size Size  of type
+     * @return mappings type
      */
     public String getType(long size) {
         return MessageFormat.format(type,new Object[]{Long.valueOf(size) });
     }
 
-    // javadoc inherited
+    /**
+     * @see java.lang.Object#toString()
+     */
     public String toString() {
         return name+" ("+minSize+","+maxSize+")+>"+type;
     }
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to