boolean (Sdk sdk1, Sdk sdk2) { if (sdk1 == null && sdk2 == null) return true; if (sdk1 == null || sdk2 == null) return false; return sdk1.getSdkType() == sdk2.getSdkType() && StringUtil.equals(sdk1.getName(), sdk2.getName()) && StringUtil.equals(sdk1.getVersionString(), sdk2.getVersionString()) && StringUtil.equals(sdk1.getHomePath(), sdk2.getHomePath()) ; }