|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springmodules.validation.util.condition.AbstractCondition
org.springmodules.validation.util.condition.NonNullAcceptingCondition
org.springmodules.validation.util.condition.collection.AbstractCollectionCondition
org.springmodules.validation.util.condition.collection.MinSizeCollectionCondition
public class MinSizeCollectionCondition
An AbstractCollectionCondition implementation that checks whether the given collection or array
is longer then a specific minimum size.
| Constructor Summary | |
|---|---|
MinSizeCollectionCondition(int minSize)
Constructs a new MinSizeCollectionCondition with a given minimum size. |
|
| Method Summary | |
|---|---|
protected boolean |
checkArray(java.lang.Object array)
Checks whether the length of the given array is greater than or equals the minimum size associated with this condition. |
protected boolean |
checkCollection(java.util.Collection collection)
Checks whether the size of the given collection is greater than or equals the minimum size associated with this condition. |
int |
getMinSize()
Returns the minimum size associated with this condition. |
| Methods inherited from class org.springmodules.validation.util.condition.collection.AbstractCollectionCondition |
|---|
beforeObjectChecked, doCheck |
| Methods inherited from class org.springmodules.validation.util.condition.AbstractCondition |
|---|
afterObjectChecked, and, check, or |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MinSizeCollectionCondition(int minSize)
minSize - The minimum size.| Method Detail |
|---|
protected boolean checkArray(java.lang.Object array)
checkArray in class AbstractCollectionConditionarray - The array to be checked.
true if the length of the given array is greater than or equals the minimum size
associated with this condition, false otherwise.protected boolean checkCollection(java.util.Collection collection)
checkCollection in class AbstractCollectionConditioncollection - The collection to be checked.
true if the size of the given collection is greater than or equals the minimum size
associated with this condition, false otherwise.public int getMinSize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||