class XLogUtils {

    public static boolean shouldLogMember(List<XLogMethod> xLogMethods, Member member) {
        if (xLogMethods == null || member == null) {
            return false;
        }
        for (XLogMethod xLogMethod : xLogMethods) {
            if (xLogMethod != null && xLogMethod.getClassName() != null
                    && xLogMethod.getClassName()
                    .equals(member.getDeclaringClass().getCanonicalName())) {
                // find XLogMethod
                if (xLogMethod.getMethodName() == null || xLogMethod.getMethodName().equals("")) {
                    return true;
                }
                if (xLogMethod.getMethodName().equals(member.getName())) {
                    return true;
                }
            }
        }
        return false;
    }

    private  XLogUtils();

}