static int getHashCode(String name, ConditionInfo[] conds, PermissionInfo[] perms, String decision) { int h = 31 * 17 + decision.hashCode(); for (int i = 0; i < conds.length; i++) h = 31 * h + conds[i].hashCode(); for (int i = 0; i < perms.length; i++) h = 31 * h + perms[i].hashCode(); if (name != null) h = 31 * h + name.hashCode(); return h; }
static int getHashCode(String name, ConditionInfo[] conds, PermissionInfo[] perms, String decision) { int h = 31 * 17 + decision.hashCode(); for (int i = 0; i < conds.length; i++) h = 31 * h + conds[i].hashCode(); for (int i = 0; i < perms.length; i++) h = 31 * h + perms[i].hashCode(); if (name != null) h = 31 * h + name.hashCode(); return h; }
static int getHashCode(String name, ConditionInfo[] conds, PermissionInfo[] perms, String decision) { int h = 31 * 17 + decision.hashCode(); for (int i = 0; i < conds.length; i++) h = 31 * h + conds[i].hashCode(); for (int i = 0; i < perms.length; i++) h = 31 * h + perms[i].hashCode(); if (name != null) h = 31 * h + name.hashCode(); return h; }
static int getHashCode(String name, ConditionInfo[] conds, PermissionInfo[] perms, String decision) { int h = 31 * 17 + decision.hashCode(); for (int i = 0; i < conds.length; i++) h = 31 * h + conds[i].hashCode(); for (int i = 0; i < perms.length; i++) h = 31 * h + perms[i].hashCode(); if (name != null) h = 31 * h + name.hashCode(); return h; }
static int getHashCode(String name, ConditionInfo[] conds, PermissionInfo[] perms, String decision) { int h = 31 * 17 + decision.hashCode(); for (int i = 0; i < conds.length; i++) h = 31 * h + conds[i].hashCode(); for (int i = 0; i < perms.length; i++) h = 31 * h + perms[i].hashCode(); if (name != null) h = 31 * h + name.hashCode(); return h; }
static int getHashCode(String name, ConditionInfo[] conds, PermissionInfo[] perms, String decision) { int h = 31 * 17 + decision.hashCode(); for (int i = 0; i < conds.length; i++) h = 31 * h + conds[i].hashCode(); for (int i = 0; i < perms.length; i++) h = 31 * h + perms[i].hashCode(); if (name != null) h = 31 * h + name.hashCode(); return h; }
static int getHashCode(String name, ConditionInfo[] conds, PermissionInfo[] perms, String decision) { int h = 31 * 17 + decision.hashCode(); for (int i = 0; i < conds.length; i++) h = 31 * h + conds[i].hashCode(); for (int i = 0; i < perms.length; i++) h = 31 * h + perms[i].hashCode(); if (name != null) h = 31 * h + name.hashCode(); return h; }
static int getHashCode(String name, ConditionInfo[] conds, PermissionInfo[] perms, String decision) { int h = 31 * 17 + decision.hashCode(); for (int i = 0; i < conds.length; i++) h = 31 * h + conds[i].hashCode(); for (int i = 0; i < perms.length; i++) h = 31 * h + perms[i].hashCode(); if (name != null) h = 31 * h + name.hashCode(); return h; }
/** * */ @Override public final int hashCode() { if (name != null) { return name.hashCode(); } final int res = conditionInfos != null && conditionInfos.length > 0 ? conditionInfos[0].hashCode() : 0; return res + permissionInfos[0].hashCode(); }