Java tutorial
//package com.java2s; import android.text.TextUtils; import android.view.View; public class Main { private static boolean hasAction(String actionText, View.OnClickListener onClickListener) { return !TextUtils.isEmpty(actionText) && onClickListener != null; } }