@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_userPrivileges = true && (isSetUserPrivileges()); list.add(present_userPrivileges); if (present_userPrivileges) list.add(userPrivileges); boolean present_groupPrivileges = true && (isSetGroupPrivileges()); list.add(present_groupPrivileges); if (present_groupPrivileges) list.add(groupPrivileges); boolean present_rolePrivileges = true && (isSetRolePrivileges()); list.add(present_rolePrivileges); if (present_rolePrivileges) list.add(rolePrivileges); return list.hashCode(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case USER_PRIVILEGES: return isSetUserPrivileges(); case GROUP_PRIVILEGES: return isSetGroupPrivileges(); case ROLE_PRIVILEGES: return isSetRolePrivileges(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetGroupPrivileges()).compareTo(other.isSetGroupPrivileges()); if (lastComparison != 0) { return lastComparison; if (isSetGroupPrivileges()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groupPrivileges, other.groupPrivileges); if (lastComparison != 0) {
public boolean equals(PrincipalPrivilegeSet that) { if (that == null) return false; boolean this_present_userPrivileges = true && this.isSetUserPrivileges(); boolean that_present_userPrivileges = true && that.isSetUserPrivileges(); if (this_present_userPrivileges || that_present_userPrivileges) { if (!(this_present_userPrivileges && that_present_userPrivileges)) return false; if (!this.userPrivileges.equals(that.userPrivileges)) return false; } boolean this_present_groupPrivileges = true && this.isSetGroupPrivileges(); boolean that_present_groupPrivileges = true && that.isSetGroupPrivileges(); if (this_present_groupPrivileges || that_present_groupPrivileges) { if (!(this_present_groupPrivileges && that_present_groupPrivileges)) return false; if (!this.groupPrivileges.equals(that.groupPrivileges)) return false; } boolean this_present_rolePrivileges = true && this.isSetRolePrivileges(); boolean that_present_rolePrivileges = true && that.isSetRolePrivileges(); if (this_present_rolePrivileges || that_present_rolePrivileges) { if (!(this_present_rolePrivileges && that_present_rolePrivileges)) return false; if (!this.rolePrivileges.equals(that.rolePrivileges)) return false; } return true; }
if (other.isSetGroupPrivileges()) { Map<String,List<PrivilegeGrantInfo>> __this__groupPrivileges = new HashMap<String,List<PrivilegeGrantInfo>>(other.groupPrivileges.size()); for (Map.Entry<String, List<PrivilegeGrantInfo>> other_element : other.groupPrivileges.entrySet()) {
optionals.set(0); if (struct.isSetGroupPrivileges()) { optionals.set(1); if (struct.isSetGroupPrivileges()) {
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_userPrivileges = true && (isSetUserPrivileges()); builder.append(present_userPrivileges); if (present_userPrivileges) builder.append(userPrivileges); boolean present_groupPrivileges = true && (isSetGroupPrivileges()); builder.append(present_groupPrivileges); if (present_groupPrivileges) builder.append(groupPrivileges); boolean present_rolePrivileges = true && (isSetRolePrivileges()); builder.append(present_rolePrivileges); if (present_rolePrivileges) builder.append(rolePrivileges); return builder.toHashCode(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_userPrivileges = true && (isSetUserPrivileges()); list.add(present_userPrivileges); if (present_userPrivileges) list.add(userPrivileges); boolean present_groupPrivileges = true && (isSetGroupPrivileges()); list.add(present_groupPrivileges); if (present_groupPrivileges) list.add(groupPrivileges); boolean present_rolePrivileges = true && (isSetRolePrivileges()); list.add(present_rolePrivileges); if (present_rolePrivileges) list.add(rolePrivileges); return list.hashCode(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case USER_PRIVILEGES: return isSetUserPrivileges(); case GROUP_PRIVILEGES: return isSetGroupPrivileges(); case ROLE_PRIVILEGES: return isSetRolePrivileges(); } throw new IllegalStateException(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case USER_PRIVILEGES: return isSetUserPrivileges(); case GROUP_PRIVILEGES: return isSetGroupPrivileges(); case ROLE_PRIVILEGES: return isSetRolePrivileges(); } throw new IllegalStateException(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case USER_PRIVILEGES: return isSetUserPrivileges(); case GROUP_PRIVILEGES: return isSetGroupPrivileges(); case ROLE_PRIVILEGES: return isSetRolePrivileges(); } throw new IllegalStateException(); }
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case USER_PRIVILEGES: return isSetUserPrivileges(); case GROUP_PRIVILEGES: return isSetGroupPrivileges(); case ROLE_PRIVILEGES: return isSetRolePrivileges(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetGroupPrivileges()).compareTo(typedOther.isSetGroupPrivileges()); if (lastComparison != 0) { return lastComparison; if (isSetGroupPrivileges()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groupPrivileges, typedOther.groupPrivileges); if (lastComparison != 0) {
lastComparison = Boolean.valueOf(isSetGroupPrivileges()).compareTo(typedOther.isSetGroupPrivileges()); if (lastComparison != 0) { return lastComparison; if (isSetGroupPrivileges()) { lastComparison = TBaseHelper.compareTo(this.groupPrivileges, typedOther.groupPrivileges); if (lastComparison != 0) {
public boolean equals(PrincipalPrivilegeSet that) { if (that == null) return false; boolean this_present_userPrivileges = true && this.isSetUserPrivileges(); boolean that_present_userPrivileges = true && that.isSetUserPrivileges(); if (this_present_userPrivileges || that_present_userPrivileges) { if (!(this_present_userPrivileges && that_present_userPrivileges)) return false; if (!this.userPrivileges.equals(that.userPrivileges)) return false; } boolean this_present_groupPrivileges = true && this.isSetGroupPrivileges(); boolean that_present_groupPrivileges = true && that.isSetGroupPrivileges(); if (this_present_groupPrivileges || that_present_groupPrivileges) { if (!(this_present_groupPrivileges && that_present_groupPrivileges)) return false; if (!this.groupPrivileges.equals(that.groupPrivileges)) return false; } boolean this_present_rolePrivileges = true && this.isSetRolePrivileges(); boolean that_present_rolePrivileges = true && that.isSetRolePrivileges(); if (this_present_rolePrivileges || that_present_rolePrivileges) { if (!(this_present_rolePrivileges && that_present_rolePrivileges)) return false; if (!this.rolePrivileges.equals(that.rolePrivileges)) return false; } return true; }
public boolean equals(PrincipalPrivilegeSet that) { if (that == null) return false; boolean this_present_userPrivileges = true && this.isSetUserPrivileges(); boolean that_present_userPrivileges = true && that.isSetUserPrivileges(); if (this_present_userPrivileges || that_present_userPrivileges) { if (!(this_present_userPrivileges && that_present_userPrivileges)) return false; if (!this.userPrivileges.equals(that.userPrivileges)) return false; } boolean this_present_groupPrivileges = true && this.isSetGroupPrivileges(); boolean that_present_groupPrivileges = true && that.isSetGroupPrivileges(); if (this_present_groupPrivileges || that_present_groupPrivileges) { if (!(this_present_groupPrivileges && that_present_groupPrivileges)) return false; if (!this.groupPrivileges.equals(that.groupPrivileges)) return false; } boolean this_present_rolePrivileges = true && this.isSetRolePrivileges(); boolean that_present_rolePrivileges = true && that.isSetRolePrivileges(); if (this_present_rolePrivileges || that_present_rolePrivileges) { if (!(this_present_rolePrivileges && that_present_rolePrivileges)) return false; if (!this.rolePrivileges.equals(that.rolePrivileges)) return false; } return true; }
lastComparison = Boolean.valueOf(isSetGroupPrivileges()).compareTo(typedOther.isSetGroupPrivileges()); if (lastComparison != 0) { return lastComparison; if (isSetGroupPrivileges()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groupPrivileges, typedOther.groupPrivileges); if (lastComparison != 0) {
public boolean equals(PrincipalPrivilegeSet that) { if (that == null) return false; boolean this_present_userPrivileges = true && this.isSetUserPrivileges(); boolean that_present_userPrivileges = true && that.isSetUserPrivileges(); if (this_present_userPrivileges || that_present_userPrivileges) { if (!(this_present_userPrivileges && that_present_userPrivileges)) return false; if (!this.userPrivileges.equals(that.userPrivileges)) return false; } boolean this_present_groupPrivileges = true && this.isSetGroupPrivileges(); boolean that_present_groupPrivileges = true && that.isSetGroupPrivileges(); if (this_present_groupPrivileges || that_present_groupPrivileges) { if (!(this_present_groupPrivileges && that_present_groupPrivileges)) return false; if (!this.groupPrivileges.equals(that.groupPrivileges)) return false; } boolean this_present_rolePrivileges = true && this.isSetRolePrivileges(); boolean that_present_rolePrivileges = true && that.isSetRolePrivileges(); if (this_present_rolePrivileges || that_present_rolePrivileges) { if (!(this_present_rolePrivileges && that_present_rolePrivileges)) return false; if (!this.rolePrivileges.equals(that.rolePrivileges)) return false; } return true; }
public boolean equals(PrincipalPrivilegeSet that) { if (that == null) return false; boolean this_present_userPrivileges = true && this.isSetUserPrivileges(); boolean that_present_userPrivileges = true && that.isSetUserPrivileges(); if (this_present_userPrivileges || that_present_userPrivileges) { if (!(this_present_userPrivileges && that_present_userPrivileges)) return false; if (!this.userPrivileges.equals(that.userPrivileges)) return false; } boolean this_present_groupPrivileges = true && this.isSetGroupPrivileges(); boolean that_present_groupPrivileges = true && that.isSetGroupPrivileges(); if (this_present_groupPrivileges || that_present_groupPrivileges) { if (!(this_present_groupPrivileges && that_present_groupPrivileges)) return false; if (!this.groupPrivileges.equals(that.groupPrivileges)) return false; } boolean this_present_rolePrivileges = true && this.isSetRolePrivileges(); boolean that_present_rolePrivileges = true && that.isSetRolePrivileges(); if (this_present_rolePrivileges || that_present_rolePrivileges) { if (!(this_present_rolePrivileges && that_present_rolePrivileges)) return false; if (!this.rolePrivileges.equals(that.rolePrivileges)) return false; } return true; }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_userPrivileges = true && (isSetUserPrivileges()); builder.append(present_userPrivileges); if (present_userPrivileges) builder.append(userPrivileges); boolean present_groupPrivileges = true && (isSetGroupPrivileges()); builder.append(present_groupPrivileges); if (present_groupPrivileges) builder.append(groupPrivileges); boolean present_rolePrivileges = true && (isSetRolePrivileges()); builder.append(present_rolePrivileges); if (present_rolePrivileges) builder.append(rolePrivileges); return builder.toHashCode(); }