@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_protocol_version = true; list.add(present_protocol_version); if (present_protocol_version) list.add(protocol_version); boolean present_requestorUserName = true && (isSetRequestorUserName()); list.add(present_requestorUserName); if (present_requestorUserName) list.add(requestorUserName); boolean present_authorizableSet = true && (isSetAuthorizableSet()); list.add(present_authorizableSet); if (present_authorizableSet) list.add(authorizableSet); boolean present_groups = true && (isSetGroups()); list.add(present_groups); if (present_groups) list.add(groups); boolean present_roleSet = true && (isSetRoleSet()); list.add(present_roleSet); if (present_roleSet) list.add(roleSet); boolean present_users = true && (isSetUsers()); list.add(present_users); if (present_users) list.add(users); return list.hashCode(); }
if (isSetUsers()) { if (!first) sb.append(", "); sb.append("users:");
/** * Performs a deep copy on <i>other</i>. */ public TListSentryPrivilegesByAuthRequest(TListSentryPrivilegesByAuthRequest other) { __isset_bitfield = other.__isset_bitfield; this.protocol_version = other.protocol_version; if (other.isSetRequestorUserName()) { this.requestorUserName = other.requestorUserName; } if (other.isSetAuthorizableSet()) { Set<TSentryAuthorizable> __this__authorizableSet = new HashSet<TSentryAuthorizable>(other.authorizableSet.size()); for (TSentryAuthorizable other_element : other.authorizableSet) { __this__authorizableSet.add(new TSentryAuthorizable(other_element)); } this.authorizableSet = __this__authorizableSet; } if (other.isSetGroups()) { Set<String> __this__groups = new HashSet<String>(other.groups); this.groups = __this__groups; } if (other.isSetRoleSet()) { this.roleSet = new TSentryActiveRoleSet(other.roleSet); } if (other.isSetUsers()) { Set<String> __this__users = new HashSet<String>(other.users); this.users = __this__users; } }
lastComparison = Boolean.valueOf(isSetUsers()).compareTo(other.isSetUsers()); if (lastComparison != 0) { return lastComparison; if (isSetUsers()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.users, other.users); if (lastComparison != 0) {
/** 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 PROTOCOL_VERSION: return isSetProtocol_version(); case REQUESTOR_USER_NAME: return isSetRequestorUserName(); case AUTHORIZABLE_SET: return isSetAuthorizableSet(); case GROUPS: return isSetGroups(); case ROLE_SET: return isSetRoleSet(); case USERS: return isSetUsers(); } throw new IllegalStateException(); }
if (struct.isSetUsers()) { oprot.writeFieldBegin(USERS_FIELD_DESC);
boolean this_present_users = true && this.isSetUsers(); boolean that_present_users = true && that.isSetUsers(); if (this_present_users || that_present_users) { if (!(this_present_users && that_present_users))
optionals.set(1); if (struct.isSetUsers()) { optionals.set(2); struct.roleSet.write(oprot); if (struct.isSetUsers()) {