@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(isSetUserPrivileges()).compareTo(other.isSetUserPrivileges()); if (lastComparison != 0) { return lastComparison; if (isSetUserPrivileges()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userPrivileges, other.userPrivileges); 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.isSetUserPrivileges()) { Map<String,List<PrivilegeGrantInfo>> __this__userPrivileges = new HashMap<String,List<PrivilegeGrantInfo>>(other.userPrivileges.size()); for (Map.Entry<String, List<PrivilegeGrantInfo>> other_element : other.userPrivileges.entrySet()) {
TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserPrivileges()) { optionals.set(0); if (struct.isSetUserPrivileges()) {
@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(); }
PrincipalPrivilegeSet typedOther = (PrincipalPrivilegeSet)other; lastComparison = Boolean.valueOf(isSetUserPrivileges()).compareTo(typedOther.isSetUserPrivileges()); if (lastComparison != 0) { return lastComparison; if (isSetUserPrivileges()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userPrivileges, typedOther.userPrivileges); if (lastComparison != 0) {
PrincipalPrivilegeSet typedOther = (PrincipalPrivilegeSet)other; lastComparison = Boolean.valueOf(isSetUserPrivileges()).compareTo(typedOther.isSetUserPrivileges()); if (lastComparison != 0) { return lastComparison; if (isSetUserPrivileges()) { lastComparison = TBaseHelper.compareTo(this.userPrivileges, typedOther.userPrivileges); 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; }
PrincipalPrivilegeSet typedOther = (PrincipalPrivilegeSet)other; lastComparison = Boolean.valueOf(isSetUserPrivileges()).compareTo(typedOther.isSetUserPrivileges()); if (lastComparison != 0) { return lastComparison; if (isSetUserPrivileges()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userPrivileges, typedOther.userPrivileges); 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(); }