diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2007-03-22 21:21:26 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2007-03-22 21:21:26 +0000 |
commit | 49f805b69831fbcf9078e42e74ecf0f1752fe129 (patch) | |
tree | 7eeedb5fee85b8bad3c49239f6af68adef0d772d /src/main/java/com/amazon/carbonado | |
parent | 4ed09a311de4089f0fd5007eca29398252e5977a (diff) |
Use consistent terminology in comments.
Diffstat (limited to 'src/main/java/com/amazon/carbonado')
-rw-r--r-- | src/main/java/com/amazon/carbonado/constraint/LengthConstraint.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/com/amazon/carbonado/constraint/LengthConstraint.java b/src/main/java/com/amazon/carbonado/constraint/LengthConstraint.java index 1ffb4b5..48a5e67 100644 --- a/src/main/java/com/amazon/carbonado/constraint/LengthConstraint.java +++ b/src/main/java/com/amazon/carbonado/constraint/LengthConstraint.java @@ -25,7 +25,7 @@ import com.amazon.carbonado.MalformedTypeException; /**
* Limits the value of a property to lie within a specific length range. The
* property value may be a String, CharSequence, or any kind of array. If the
- * set property size is outside the range, an IllegalArgumentException is
+ * set property length is outside the range, an IllegalArgumentException is
* thrown.
*
* <p>Example:<pre>
@@ -46,12 +46,12 @@ import com.amazon.carbonado.MalformedTypeException; @ConstraintDefinition
public @interface LengthConstraint {
/**
- * Specify minimum allowed size for property. Default is zero.
+ * Specify minimum allowed length for property. Default is zero.
*/
int min() default 0;
/**
- * Specify maximum allowed value for property. Default is unlimited.
+ * Specify maximum allowed length for property. Default is unlimited.
*/
int max() default Integer.MAX_VALUE;
@@ -75,8 +75,8 @@ public @interface LengthConstraint { /**
* @param type type of object that contains the constrained property
* @param propertyName name of property with constraint
- * @param min minimum allowed size
- * @param max maximum allowed size
+ * @param min minimum allowed length
+ * @param max maximum allowed length
*/
public Constraint(Class<?> type, String propertyName, int min, int max) {
mPropertyName = propertyName;
|