Save This Page
Home » tapestry-src-5.0.19 » org.apache.tapestry5.ioc.internal.util » [javadoc | source]
org.apache.tapestry5.ioc.internal.util
public final class: Defense [javadoc | source]
java.lang.Object
   org.apache.tapestry5.ioc.internal.util.Defense
Static utility methods for defensive programming.
Method from org.apache.tapestry5.ioc.internal.util.Defense Summary:
cast,   notBlank,   notNull
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tapestry5.ioc.internal.util.Defense Detail:
 public static T cast(Object parameterValue,
    Class<T> type,
    String parameterName) 
    Checks that the provided value is not null, and may be cast to the desired type.
 public static String notBlank(String value,
    String parameterName) 
    Checks that a parameter value is not null and not empty.
 public static T notNull(T value,
    String parameterName) 
    Checks that a method parameter value is not null, and returns it.