Package org.more

Examples of org.more.NullArgumentException


        return null;
    };
    /***/
    public static void copyProperties(final Object dest, final Object orig) {
        if (dest == null) {
            throw new NullArgumentException("dest");
        }
        if (orig == null) {
            throw new NullArgumentException("orig");
        }
        //
        List<String> propNames = new ArrayList<String>();
        if (orig instanceof Map) {
            for (Object key : ((Map) orig).keySet()) {
View Full Code Here


        }
    }
    /***/
    public static void copyProperty(final Object dest, final Object orig, final String propertyName) {
        if (dest == null) {
            throw new NullArgumentException("dest");
        }
        if (orig == null) {
            throw new NullArgumentException("orig");
        }
        if (StringUtils.isBlank(propertyName)) {
            throw new NullArgumentException("propertyName");
        }
        //
        if (orig instanceof Map == false) {
            if (!BeanUtils.canReadPropertyOrField(propertyName, orig.getClass())) {
                return;
View Full Code Here

     * @return the converted name
     */
    private static String toCanonicalName(String className) {
        className = StringUtils.deleteWhitespace(className);
        if (className == null) {
            throw new NullArgumentException("className");
        } else if (className.endsWith("[]")) {
            StringBuilder classNameBuffer = new StringBuilder();
            while (className.endsWith("[]")) {
                className = className.substring(0, className.length() - 2);
                classNameBuffer.append("[");
View Full Code Here

TOP

Related Classes of org.more.NullArgumentException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.