/** * Performs a deep copy on <i>other</i>. */ public GetPrincipalsInRoleRequest(GetPrincipalsInRoleRequest other) { if (other.isSetRoleName()) { this.roleName = other.roleName; } }
public boolean equals(GetPrincipalsInRoleRequest that) { if (that == null) return false; boolean this_present_roleName = true && this.isSetRoleName(); boolean that_present_roleName = true && that.isSetRoleName(); if (this_present_roleName || that_present_roleName) { if (!(this_present_roleName && that_present_roleName)) return false; if (!this.roleName.equals(that.roleName)) return false; } return true; }
/** 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 ROLE_NAME: return isSetRoleName(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_roleName = true && (isSetRoleName()); list.add(present_roleName); if (present_roleName) list.add(roleName); return list.hashCode(); }
@Override public int compareTo(GetPrincipalsInRoleRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName()); if (lastComparison != 0) { return lastComparison; } if (isSetRoleName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName); if (lastComparison != 0) { return lastComparison; } } return 0; }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetRoleName()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'roleName' is unset! Struct:" + toString()); } // check for sub-struct validity }
/** * Performs a deep copy on <i>other</i>. */ public GetPrincipalsInRoleRequest(GetPrincipalsInRoleRequest other) { if (other.isSetRoleName()) { this.roleName = other.roleName; } }
/** * Performs a deep copy on <i>other</i>. */ public GetPrincipalsInRoleRequest(GetPrincipalsInRoleRequest other) { if (other.isSetRoleName()) { this.roleName = other.roleName; } }
public boolean equals(GetPrincipalsInRoleRequest that) { if (that == null) return false; boolean this_present_roleName = true && this.isSetRoleName(); boolean that_present_roleName = true && that.isSetRoleName(); if (this_present_roleName || that_present_roleName) { if (!(this_present_roleName && that_present_roleName)) return false; if (!this.roleName.equals(that.roleName)) return false; } return true; }
public boolean equals(GetPrincipalsInRoleRequest that) { if (that == null) return false; boolean this_present_roleName = true && this.isSetRoleName(); boolean that_present_roleName = true && that.isSetRoleName(); if (this_present_roleName || that_present_roleName) { if (!(this_present_roleName && that_present_roleName)) return false; if (!this.roleName.equals(that.roleName)) return false; } return true; }
/** 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 ROLE_NAME: return isSetRoleName(); } 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 ROLE_NAME: return isSetRoleName(); } throw new IllegalStateException(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_roleName = true && (isSetRoleName()); builder.append(present_roleName); if (present_roleName) builder.append(roleName); return builder.toHashCode(); }
public int compareTo(GetPrincipalsInRoleRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; GetPrincipalsInRoleRequest typedOther = (GetPrincipalsInRoleRequest)other; lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName()); if (lastComparison != 0) { return lastComparison; } if (isSetRoleName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName); if (lastComparison != 0) { return lastComparison; } } return 0; }
public int compareTo(GetPrincipalsInRoleRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; GetPrincipalsInRoleRequest typedOther = (GetPrincipalsInRoleRequest)other; lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName()); if (lastComparison != 0) { return lastComparison; } if (isSetRoleName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName); if (lastComparison != 0) { return lastComparison; } } return 0; }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetRoleName()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'roleName' is unset! Struct:" + toString()); } // check for sub-struct validity }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetRoleName()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'roleName' is unset! Struct:" + toString()); } // check for sub-struct validity }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_roleName = true && (isSetRoleName()); builder.append(present_roleName); if (present_roleName) builder.append(roleName); return builder.toHashCode(); }