boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; VagrantBasedCredentialsHolder holder = (VagrantBasedCredentialsHolder)o; if (!myVagrantFolder.equals(holder.myVagrantFolder)) return false; if (StringUtil.isNotEmpty(myMachineName) || StringUtil.isNotEmpty(holder.myMachineName)) { return StringUtil.equals(myMachineName, holder.myMachineName); } return true; }