|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.schmant.support.AbstractArgumentChecker
public abstract class AbstractArgumentChecker
This class can be inherited by classes that want to check arguments to their methods.
| Constructor Summary | |
|---|---|
AbstractArgumentChecker()
|
|
| Method Summary | |
|---|---|
protected void |
check(Collection<?> c)
Check that the argument is not null and that it does not contain
any null elements. |
protected void |
check(Map<?,?> m)
Check that the argument is not null and that the map does not
contain any null keys. |
protected void |
check(Object... os)
|
protected void |
check(Object o)
Check that the argument is not null. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractArgumentChecker()
| Method Detail |
|---|
protected void check(Object o)
throws InvalidArgumentException
null.
o - May not be null
InvalidArgumentException - If the argument is null.
protected void check(Collection<?> c)
throws InvalidArgumentException
null and that it does not contain
any null elements.
c - A collection
InvalidArgumentException - If the collection does not pass the
validation.
protected void check(Map<?,?> m)
throws InvalidArgumentException
null and that the map does not
contain any null keys. (Null values are permitted.)
m - A map
InvalidArgumentException - If the map does not pass the validation.protected void check(Object... os)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||