com.zmicer.utils
Class ObjectStateUtils
java.lang.Object
com.zmicer.utils.ObjectStateUtils
public class ObjectStateUtils
- extends Object
This class contains the methods could be used when checking the state of the object. It just contains the common functionality we use.
$Author:: zmicer $
$Rev:: 57 $
* $Date:: 2007-08-23 09:16:37 #$
Field Summary |
static org.apache.log4j.Logger |
LOG
Logger instance. |
Method Summary |
static void |
strongCheck(ICheckable checkable)
Perform the strong check of the provided object - it means the IllegalArgumentException would be thrown in the case of
the ICheckable.check() return false . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final org.apache.log4j.Logger LOG
- Logger instance.
ObjectStateUtils
public ObjectStateUtils()
strongCheck
public static void strongCheck(ICheckable checkable)
- Perform the strong check of the provided object - it means the
IllegalArgumentException
would be thrown in the case of
the ICheckable.check()
return false
.
todo: [zmicer] think if we need introduce the types of Exceptions to be thrown here
- Parameters:
checkable
- the instance we need check. Can not be null (otherwise IllegalArgumentException
would appear).
Copyright © 2007 jzmicer.team. All Rights Reserved.