All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.dadiyang.httpinvoker.util.ObjectUtils Maven / Gradle / Ivy

There is a newer version: 1.2.4
Show newest version
package com.github.dadiyang.httpinvoker.util;

/**
 * @author dadiyang
 * @since 2019-06-12
 */
public class ObjectUtils {
    private ObjectUtils() {
        throw new UnsupportedOperationException("utils should not be initialized!");
    }

    public static boolean equals(Object a, Object b) {
        return (a == b) || (a != null && a.equals(b));
    }

    public static void requireNonNull(Object obj, String message) {
        if (obj == null) {
            throw new NullPointerException(message);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy